fix(repart): depend on sysroot-run mount
This commit is contained in:
parent
10090a75b0
commit
83bb3599a4
3 changed files with 11 additions and 3 deletions
pkgs/rootfs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue