61e1a1335c
Convert 14 config files from the legacy init script format (plain-text commands) to the systemd-style TOML .service format. The init daemon supports both formats; this eliminates the legacy path entirely so that all services use the richer, more structured TOML unit format. Key changes per config: - base.toml: split 00_base into 00_base.service (tmpdir) + 00_sudo.service (sudo daemon); remove redundant 00_drivers and 10_net (handled by existing .service files from the base recipe) - minimal.toml: split 30_console into 29_activate_console.service + 30_console.service + 31_debug_console.service - desktop-minimal.toml: convert 20_display and 30_console to .service, add 29_activate_console and 31_debug_console overrides - x11.toml: convert 10_dbus, 10_xenv, 20_orbital, 30_console - redoxer.toml: split 10_net into 10_smolnetd.service + 10_dhcpd.service, convert 30_redoxer - redbear-legacy-*.toml: update override references to .service paths - acid.toml, auto-test.toml, os-test.toml, sys-build.toml: direct conversions
74 lines
1.2 KiB
TOML
74 lines
1.2 KiB
TOML
# Configuration for the Redoxer image
|
|
|
|
include = ["base.toml"]
|
|
|
|
# Package settings
|
|
[packages]
|
|
bash = {}
|
|
ca-certificates = {}
|
|
coreutils = {}
|
|
extrautils = {}
|
|
findutils = {}
|
|
gnu-make = {}
|
|
ion = {}
|
|
pkgutils = {}
|
|
relibc = {}
|
|
sed = {}
|
|
|
|
# Override network services for redoxer (foreground dhcpd)
|
|
[[files]]
|
|
path = "/usr/lib/init.d/10_smolnetd.service"
|
|
data = """
|
|
[unit]
|
|
description = "Network stack for redoxer"
|
|
requires_weak = ["00_pcid-spawner.service"]
|
|
|
|
[service]
|
|
cmd = "netstack"
|
|
type = "oneshot_async"
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/usr/lib/init.d/10_dhcpd.service"
|
|
data = """
|
|
[unit]
|
|
description = "DHCP client (foreground) for redoxer"
|
|
requires_weak = ["10_smolnetd.service"]
|
|
|
|
[service]
|
|
cmd = "dhcpd"
|
|
type = "oneshot_async"
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/usr/lib/init.d/30_redoxer.service"
|
|
data = """
|
|
[unit]
|
|
description = "Redoxer test runner"
|
|
requires_weak = ["10_dhcpd.service"]
|
|
|
|
[service]
|
|
cmd = "ion"
|
|
args = ["/usr/lib/run_redoxer.ion"]
|
|
type = "oneshot_async"
|
|
"""
|
|
|
|
[[files]]
|
|
path = "/usr/lib/run_redoxer.ion"
|
|
data = """
|
|
#!/usr/bin/env ion
|
|
echo
|
|
echo "## preparing environment ##"
|
|
export GROUPS=0
|
|
export HOME=/root
|
|
export HOST=redox
|
|
export SHELL=/bin/sh
|
|
export UID=0
|
|
export USER=root
|
|
cd /root
|
|
env
|
|
echo
|
|
echo "## running redoxer ##"
|
|
redoxerd
|
|
"""
|