Optimized umount procedures

This commit is contained in:
2020-06-11 11:41:51 +02:00
parent e8ffc4d756
commit aa2eb62e77
3 changed files with 14 additions and 10 deletions

View File

@@ -5,9 +5,7 @@
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
destructor(){
info "Unmount everything" &&
umount "$root_mount_path"{dev/pts,dev,sys,proc,boot,} $boot_mount_path||
warning "Failed."
umount_everything
}
info "Starting chroot..."