fhs-chrootenv: use -l to umount for the rbind mount

This commit is contained in:
Aristid Breitkreuz 2014-05-22 22:18:30 +02:00
parent ecee297a18
commit eb928c5d46

View File

@ -2,5 +2,5 @@
chrootenvDest=/run/chrootenv/@name@
# Unmount all bind mounts
umount $chrootenvDest/{dev/pts,dev/shm,dev,nix/store,proc,sys,host-etc,home,var,run}
# Unmount all (r)bind mounts
umount -l $chrootenvDest/{dev/pts,dev/shm,dev,nix/store,proc,sys,host-etc,home,var,run}