fix(repart): depend on sysroot-run mount

This commit is contained in:
Lars Sjöström 2025-03-04 12:16:49 +01:00
parent 10090a75b0
commit 83bb3599a4
No known key found for this signature in database
3 changed files with 11 additions and 3 deletions
pkgs/rootfs

View file

@ -21,6 +21,10 @@ ln -sf initrd.target ./usr/lib/systemd/system/default.target
mkdir ./usr/lib/systemd/system/systemd-repart.service.d
cat <<EOF > ./usr/lib/systemd/system/systemd-repart.service.d/override.conf
[Unit]
After=sysroot-run.mount
Requires=sysroot-run.mount
[Service]
ExecStart=systemd-repart --dry-run=no --generate-crypttab=/run/crypttab --generate-fstab=/run/fstab
EOF