feat(guanghu-os): add cross-root supervisor slice

This commit is contained in:
冰朔 2026-08-15 23:49:28 +08:00
commit 9db3ecd2e7
10 changed files with 317 additions and 5 deletions

View file

@ -0,0 +1,20 @@
[Unit]
Description=Guanghu cross-root persistent supervisor
DefaultDependencies=no
After=systemd-remount-fs.service
Before=sysinit.target basic.target
ConditionKernelCommandLine=guanghu.first_boot=1
[Service]
Type=simple
ExecStart=/usr/lib/guanghu/guanghu-root-supervisor run
Restart=on-failure
RestartSec=2
UMask=0077
NoNewPrivileges=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=/run/guanghu
[Install]
WantedBy=sysinit.target