Add respawn and getty service config across all build targets

Getty services now use respawn = true so init restarts them on
exit. redbear-live-mini expanded with additional boot-late services
and reorganized service ordering. Device services TOML gains new
entries for hardened daemon lifecycle.
This commit is contained in:
2026-04-23 20:28:52 +01:00
parent 0bbd9adfb3
commit d7444606cb
7 changed files with 124 additions and 97 deletions
+12 -3
View File
@@ -2,6 +2,16 @@
#
# This fragment is intended to be included by the active desktop/graphics target.
[[files]]
path = "/usr/lib/init.d/05_boot-essential.target"
data = """
[unit]
description = "Boot essential services target"
requires_weak = [
"00_base.target",
]
"""
[users.greeter]
password = ""
uid = 101
@@ -75,7 +85,6 @@ path = "/usr/lib/init.d/30_console.service"
data = """
[unit]
description = "Console terminals"
boot_essential = true
requires_weak = [
"29_activate_console.service",
]
@@ -84,6 +93,7 @@ requires_weak = [
cmd = "getty"
args = ["2"]
type = "oneshot_async"
respawn = true
"""
[[files]]
@@ -91,7 +101,6 @@ path = "/usr/lib/init.d/29_activate_console.service"
data = """
[unit]
description = "Activate fallback console VT"
boot_essential = true
requires_weak = [
"05_boot-essential.target",
]
@@ -107,7 +116,6 @@ path = "/usr/lib/init.d/31_debug_console.service"
data = """
[unit]
description = "Debug console"
boot_essential = true
requires_weak = [
"29_activate_console.service",
]
@@ -116,4 +124,5 @@ requires_weak = [
cmd = "getty"
args = ["/scheme/debug/no-preserve", "-J"]
type = "oneshot_async"
respawn = true
"""