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.
This commit is contained in:
@@ -1,23 +1,15 @@
|
||||
--- /dev/null
|
||||
+++ b/init.d/05_boot_essential.target
|
||||
@@ -0,0 +1,7 @@
|
||||
@@ -0,0 +1,3 @@
|
||||
+[unit]
|
||||
+description = "Boot essential services target"
|
||||
+requires_weak = ["00_base.target"]
|
||||
+
|
||||
+[service]
|
||||
+cmd = "/usr/bin/true"
|
||||
+type = "oneshot"
|
||||
--- /dev/null
|
||||
+++ b/init.d/12_boot_late.target
|
||||
@@ -0,0 +1,7 @@
|
||||
@@ -0,0 +1,3 @@
|
||||
+[unit]
|
||||
+description = "Boot late stage target"
|
||||
+requires_weak = ["05_boot_essential.target"]
|
||||
+
|
||||
+[service]
|
||||
+cmd = "/usr/bin/true"
|
||||
+type = "oneshot"
|
||||
--- /dev/null
|
||||
+++ b/init.d/12_dbus.service
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
Reference in New Issue
Block a user