fix: add serial getty and console activation services to init.d
Boot process now includes: - 25_serial_getty.service: getty on serial console (visible in QEMU -nographic) - 29_activate_console.service: inputd -A 2 (activate VT2) - 30_console.service: getty on VT2 (framebuffer console) Fixed hunk counts (7→8, 8→9) for correct patch application. Services use 'oneshot_async' type for fire-and-forget startup. ZSH is the default shell for all user accounts (base.toml, mini, full, greeter).
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
--- a/init.d/25_serial_getty.service 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ b/init.d/25_serial_getty.service 2026-05-03 11:30:02.804864646 +0100
|
||||
@@ -0,0 +1,8 @@
|
||||
+[unit]
|
||||
+description = "Serial console getty"
|
||||
+requires_weak = ["00_base.target"]
|
||||
+
|
||||
+[service]
|
||||
+cmd = "getty"
|
||||
+args = ["ttyS0"]
|
||||
+type = "oneshot_async"
|
||||
--- a/init.d/29_activate_console.service 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ b/init.d/29_activate_console.service 2026-05-03 11:30:02.805544603 +0100
|
||||
@@ -0,0 +1,8 @@
|
||||
+[unit]
|
||||
+description = "Activate console VT"
|
||||
+requires_weak = ["00_base.target"]
|
||||
+
|
||||
+[service]
|
||||
+cmd = "inputd"
|
||||
+args = ["-A", "2"]
|
||||
+type = "oneshot_async"
|
||||
--- a/init.d/30_console.service 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ b/init.d/30_console.service 2026-05-03 11:30:02.806099127 +0100
|
||||
@@ -0,0 +1,8 @@
|
||||
+[unit]
|
||||
+description = "Console getty on VT2"
|
||||
+requires_weak = ["29_activate_console.service"]
|
||||
+
|
||||
+[service]
|
||||
+cmd = "getty"
|
||||
+args = ["2"]
|
||||
+type = "oneshot_async"
|
||||
@@ -0,0 +1 @@
|
||||
../../../local/patches/base/P4-initfs-getty-services.patch
|
||||
@@ -15,6 +15,7 @@ patches = [
|
||||
"P4-acpi-shutdown-hardening.patch",
|
||||
"P4-initfs-usb-drm-services.patch",
|
||||
"P4-initfs-network-services.patch",
|
||||
"P4-initfs-getty-services.patch",
|
||||
]
|
||||
|
||||
[build]
|
||||
|
||||
Reference in New Issue
Block a user