Migrate all init scripts from legacy format to .service TOML units
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
This commit is contained in:
+14
-18
@@ -23,31 +23,27 @@ uutils = {}
|
||||
|
||||
## Configuration files
|
||||
[[files]]
|
||||
path = "/usr/lib/init.d/00_base"
|
||||
path = "/usr/lib/init.d/00_base.service"
|
||||
data = """
|
||||
# clear and recreate tmpdir with 0o1777 permission
|
||||
rm -rf /tmp
|
||||
mkdir -m a=rwxt /tmp
|
||||
[unit]
|
||||
description = "Base environment setup (tmpdir)"
|
||||
|
||||
notify ipcd
|
||||
notify ptyd
|
||||
nowait sudo --daemon
|
||||
[service]
|
||||
cmd = "ion"
|
||||
args = ["-c", "rm -rf /tmp; mkdir -m a=rwxt /tmp"]
|
||||
type = "oneshot"
|
||||
"""
|
||||
|
||||
[[files]]
|
||||
path = "/usr/lib/init.d/00_drivers"
|
||||
path = "/usr/lib/init.d/00_sudo.service"
|
||||
data = """
|
||||
requires_weak 00_base
|
||||
pcid-spawner
|
||||
"""
|
||||
[unit]
|
||||
description = "Sudo privilege daemon"
|
||||
|
||||
## Network init
|
||||
[[files]]
|
||||
path = "/usr/lib/init.d/10_net"
|
||||
data = """
|
||||
requires_weak 00_drivers
|
||||
notify smolnetd
|
||||
nowait dhcpd
|
||||
[service]
|
||||
cmd = "sudo"
|
||||
args = ["--daemon"]
|
||||
type = "oneshot_async"
|
||||
"""
|
||||
|
||||
[[files]]
|
||||
|
||||
Reference in New Issue
Block a user