nixpkgs/pkgs/build-support/build-fhs-chrootenv/umount.sh.in
2015-08-24 01:47:19 +03:00

6 lines
182 B
Bash

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