From 39b6aa7c54dfbe3db368e623637a2fbf5658b181 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Mon, 4 May 2026 07:10:39 +0100 Subject: [PATCH] fix(config): move init services from /usr/lib/init.d to /etc/init.d Config [[files]] entries for init services used /usr/lib/init.d/ paths, which get silently overwritten by package staging (Layer 2 over Layer 1). Per AGENTS.md, config overrides MUST use /etc/init.d/ so the init system's config_for_dirs() gives them priority over package defaults. Fixes mini image debug console failure (getty: failed to open TTY /scheme/fbcon/3: No such file or directory) caused by base package's 31_debug_console.service overwriting minimal.toml's debug scheme override. --- config/base.toml | 4 ++-- config/minimal.toml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/base.toml b/config/base.toml index aed5a07a..3f82fc06 100644 --- a/config/base.toml +++ b/config/base.toml @@ -23,7 +23,7 @@ uutils = {} ## Configuration files [[files]] -path = "/usr/lib/init.d/00_base.service" +path = "/etc/init.d/00_base.service" data = """ [unit] description = "Base environment setup (tmpdir)" @@ -35,7 +35,7 @@ type = "oneshot" """ [[files]] -path = "/usr/lib/init.d/00_sudo.service" +path = "/etc/init.d/00_sudo.service" data = """ [unit] description = "Sudo privilege daemon" diff --git a/config/minimal.toml b/config/minimal.toml index faa3cf47..b2fbe7fa 100644 --- a/config/minimal.toml +++ b/config/minimal.toml @@ -17,7 +17,7 @@ pkgutils = {} kibi = {} [[files]] -path = "/usr/lib/init.d/29_activate_console.service" +path = "/etc/init.d/29_activate_console.service" data = """ [unit] description = "Activate console VT" @@ -30,7 +30,7 @@ type = "oneshot_async" """ [[files]] -path = "/usr/lib/init.d/30_console.service" +path = "/etc/init.d/30_console.service" data = """ [unit] description = "Console terminals" @@ -43,7 +43,7 @@ type = "oneshot_async" """ [[files]] -path = "/usr/lib/init.d/31_debug_console.service" +path = "/etc/init.d/31_debug_console.service" data = """ [unit] description = "Debug console"