fix: getty services use numeric args for /scheme/fbcon/ paths

getty converts numeric args to /scheme/fbcon/{N} paths.
Non-numeric args (like ttyS0) are treated as literal paths
which don't exist in Redox. Changed to:
- 29_activate_console: inputd -A 2
- 30_console: getty 2 → /scheme/fbcon/2 (VT2 login)
- 31_debug_console: getty 3 → /scheme/fbcon/3 (VT3 debug)

Serial console (ttyS0) has no standard scheme path in Redox.
Login prompt is on the framebuffer console (requires graphical QEMU
or VNC to view).
This commit is contained in:
2026-05-03 11:50:55 +01:00
parent 01b1a67837
commit 480d1a56f4
@@ -1,16 +1,5 @@
--- 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
--- /dev/null
+++ b/init.d/29_activate_console.service
@@ -0,0 +1,8 @@
+[unit]
+description = "Activate console VT"
@@ -20,8 +9,8 @@
+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
--- /dev/null
+++ b/init.d/30_console.service
@@ -0,0 +1,8 @@
+[unit]
+description = "Console getty on VT2"
@@ -31,3 +20,14 @@
+cmd = "getty"
+args = ["2"]
+type = "oneshot_async"
--- /dev/null
+++ b/init.d/31_debug_console.service
@@ -0,0 +1,8 @@
+[unit]
+description = "Debug console on VT3"
+requires_weak = ["29_activate_console.service"]
+
+[service]
+cmd = "getty"
+args = ["3"]
+type = "oneshot_async"