init: Support unit instancing

And use it for the logging ramfs by having a generic ramfs unit.
This commit is contained in:
bjorn3
2026-03-04 21:50:49 +01:00
parent 0869d8184c
commit a063db73a4
3 changed files with 80 additions and 47 deletions
+1 -1
View File
@@ -6,5 +6,5 @@ requires_weak = [
"00_randd.service",
"00_rtcd.service",
"00_zerod.service",
"00_logging_ramfs.service",
"ramfs@logging.service",
]
@@ -1,8 +1,9 @@
[unit]
description = "$INSTANCE ramfs"
default_dependencies = false
requires_weak = ["00_randd.service"]
[service]
cmd = "ramfs"
args = ["logging"]
type = { scheme = "logging" }
args = ["$INSTANCE"]
type = { scheme = "$INSTANCE" }