added own service for creating overlays

This commit is contained in:
jonathan
2025-10-11 19:19:58 +02:00
parent 3489e7fba8
commit 1ab48bdc2d
4 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
[Unit]
Description=Nimux early mount: ZFS import + overlay for /etc and /home
DefaultDependencies=no
After=systemd-udev-settle.service
Wants=systemd-udev-settle.service
Before=local-fs-pre.target local-fs.target
Wants=local-fs-pre.target
Conflicts=shutdown.target
[Service]
Type=oneshot
RemainAfterExit=yes
Environment=XONSH_HISTORY_BACKEND=none
Environment=XONSH_CACHE_DIR=/dev/null
Environment=XONSH_DATA_DIR=/dev/null
Environment=HOME=/tmp/xonsh-home
ExecStart=/usr/lib/nimux/nimux-early-mount.xsh
TimeoutStartSec=30s
[Install]
WantedBy=local-fs-pre.target