From 907d44736928534c04ce4c919b0df6b14eb64e6c Mon Sep 17 00:00:00 2001 From: Vasilito Date: Sun, 3 May 2026 18:31:38 +0100 Subject: [PATCH] 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. --- local/patches/base/P4-initfs-dbus-services.patch | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/local/patches/base/P4-initfs-dbus-services.patch b/local/patches/base/P4-initfs-dbus-services.patch index 196c5be2..71b41a92 100644 --- a/local/patches/base/P4-initfs-dbus-services.patch +++ b/local/patches/base/P4-initfs-dbus-services.patch @@ -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 @@