Support networking in all configs

This commit is contained in:
bjorn3 2026-03-01 14:16:39 +01:00
parent ca7bbef61c
commit 85b62fd851
8 changed files with 43 additions and 52 deletions

View File

@ -1,6 +1,6 @@
# Configuration for "acid" testing
include = ["net.toml"]
include = ["base.toml"]
# General settings
[general]

View File

@ -1,7 +1,7 @@
# Configuration for automated testing of essential test suites
# Smaller test suites are executed first to catch possible bugs or regressions faster
include = ["net.toml"]
include = ["base.toml"]
# General settings
[general]

View File

@ -15,6 +15,8 @@ bootloader = {}
kernel = {}
libgcc = {}
libstdcxx = {}
netdb = {}
netutils = {}
relibc = {}
userutils = {}
uutils = {}
@ -39,6 +41,15 @@ requires_weak 00_base
pcid-spawner
"""
## Network init
[[files]]
path = "/usr/lib/init.d/10_net"
data = """
requires_weak 00_drivers
notify smolnetd
nowait dhcpd
"""
[[files]]
path = "/etc/login_schemes.toml"
data = """
@ -87,6 +98,31 @@ schemes = [
path = "/etc/hostname"
data = "redox"
## Default net configuration (optimized for QEMU)
[[files]]
path = "/etc/net/dns"
data = """
9.9.9.9
"""
[[files]]
path = "/etc/net/ip"
data = """
10.0.2.15
"""
[[files]]
path = "/etc/net/ip_router"
data = """
10.0.2.2
"""
[[files]]
path = "/etc/net/ip_subnet"
data = """
255.255.255.0
"""
# https://www.freedesktop.org/software/systemd/man/latest/os-release.html
[[files]]
path = "/usr/lib/os-release"

View File

@ -1,6 +1,6 @@
# Minimal network configuration
include = ["net.toml"]
include = ["base.toml"]
# General settings
[general]
@ -14,7 +14,6 @@ coreutils = {}
extrautils = {}
findutils = {}
ion = {}
netdb = {}
pkgutils = {}
kibi = {}
@ -24,6 +23,6 @@ data = """
requires_weak 10_net
inputd -A 2
nowait getty 2
nowait getty /scheme/debug -J
nowait getty /scheme/debug/no-preserve -J
"""

View File

@ -17,7 +17,7 @@ kibi = {}
[[files]]
path = "/usr/lib/init.d/30_console"
data = """
requires_weak 00_drivers
requires_weak 10_net
inputd -A 2
nowait getty 2
nowait getty /scheme/debug/no-preserve -J

View File

@ -1,43 +0,0 @@
# Network configuration: includes the base configuration and adds files required
# for networking
include = ["base.toml"]
# Package settings
[packages]
netdb = {}
netutils = {}
## Network init
[[files]]
path = "/usr/lib/init.d/10_net"
data = """
requires_weak 00_drivers
notify smolnetd
nowait dhcpd
"""
## Default net configuration (optimized for QEMU)
[[files]]
path = "/etc/net/dns"
data = """
9.9.9.9
"""
[[files]]
path = "/etc/net/ip"
data = """
10.0.2.15
"""
[[files]]
path = "/etc/net/ip_router"
data = """
10.0.2.2
"""
[[files]]
path = "/etc/net/ip_subnet"
data = """
255.255.255.0
"""

View File

@ -1,6 +1,6 @@
# Configuration for the Redoxer image
include = ["net.toml"]
include = ["base.toml"]
# Package settings
[packages]
@ -11,7 +11,6 @@ extrautils = {}
findutils = {}
gnu-make = {}
ion = {}
netdb = {}
pkgutils = {}
relibc = {}
sed = {}

View File

@ -1,6 +1,6 @@
# Server configuration
include = ["net.toml"]
include = ["base.toml"]
# General settings
[general]