mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/etc: unmount old /etc hierarchy lazily
This should fix errors where /etc is reported to be busy and thus cannot be unmounted. Another solution we can consider if this doesn't work out as we expect is to forcefully unmount /etc.
This commit is contained in:
parent
d820fe987e
commit
7845b89e24
1 changed files with 1 additions and 1 deletions
|
@ -279,7 +279,7 @@ in
|
|||
${pkgs.move-mount-beneath}/bin/move-mount --move --beneath $tmpEtcMount /etc
|
||||
|
||||
# Unmount the top /etc mount to atomically reveal the new mount.
|
||||
umount --recursive /etc
|
||||
umount --lazy --recursive /etc
|
||||
fi
|
||||
'' else ''
|
||||
# Set up the statically computed bits of /etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue