Files
RedBear-OS/local/patches/base/P4-initfs-dbus-services.patch
T
vasilito 907d447369 fix: remove [service] sections from .target init files in P4 patch
The init system parser (serde deny_unknown_fields) rejects [service]
sections in .target files. The P4-initfs-dbus-services patch was
creating 05_boot_essential.target and 12_boot_late.target with a
no-op [service] section (cmd=/usr/bin/true). Removed those sections
so targets only contain [unit].

This eliminates "unknown field service, expected unit" init warnings
that could prevent proper service dependency resolution.
2026-05-03 18:31:38 +01:00

45 lines
1.0 KiB
Diff

--- /dev/null
+++ b/init.d/05_boot_essential.target
@@ -0,0 +1,3 @@
+[unit]
+description = "Boot essential services target"
+requires_weak = ["00_base.target"]
--- /dev/null
+++ b/init.d/12_boot_late.target
@@ -0,0 +1,3 @@
+[unit]
+description = "Boot late stage target"
+requires_weak = ["05_boot_essential.target"]
--- /dev/null
+++ b/init.d/12_dbus.service
@@ -0,0 +1,8 @@
+[unit]
+description = "D-Bus system bus"
+requires_weak = ["12_boot_late.target", "00_ipcd.service"]
+
+[service]
+cmd = "dbus-daemon"
+args = ["--system", "--nopidfile"]
+type = "oneshot_async"
--- /dev/null
+++ b/init.d/13_sessiond.service
@@ -0,0 +1,7 @@
+[unit]
+description = "Red Bear session broker"
+requires_weak = ["12_dbus.service"]
+
+[service]
+cmd = "redbear-sessiond"
+type = "oneshot_async"
--- /dev/null
+++ b/init.d/13_seatd.service
@@ -0,0 +1,8 @@
+[unit]
+description = "seatd seat management"
+requires_weak = ["12_dbus.service", "13_sessiond.service"]
+
+[service]
+cmd = "/usr/bin/seatd"
+args = ["-l", "info"]
+type = "oneshot_async"