init: Convert rootfs to a service

With this the entire initfs now uses service definitions.
This commit is contained in:
bjorn3
2026-02-28 17:03:06 +01:00
parent e86dbfa17e
commit 6d243d666c
6 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ use std::{env, io, iter};
use crate::service::{Service, ServiceType};
use crate::unit::UnitId;
fn subst_env<'a>(arg: &str) -> String {
pub fn subst_env<'a>(arg: &str) -> String {
if arg.starts_with('$') {
env::var(&arg[1..]).unwrap_or(String::new())
} else {