Umount after chroot
This commit is contained in:
parent
9765865d65
commit
f535cbde82
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ on_chroot() {
|
|||
fi
|
||||
|
||||
capsh --drop=cap_setfcap "--chroot=$ROOTFS_DIR/" -- "$@"
|
||||
|
||||
umount "$proc_fs"
|
||||
umount "$dev_fs"
|
||||
umount "$devpts_fs"
|
||||
umount "$sys_fs"
|
||||
}
|
||||
|
||||
export -f unmount
|
||||
|
|
Reference in a new issue