From 396af6e8078b08b1521f099b1348eab4f805a156 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Thu, 7 Nov 2019 17:34:53 +0300 Subject: Unmount on exit --- protostar | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/protostar b/protostar index a053491..1a50d57 100755 --- a/protostar +++ b/protostar @@ -116,14 +116,12 @@ debootstrap \ "${REPO}" mount_in_root -trap 'umount_in_root' SIGINT SIGTERM +trap 'umount_in_root' EXIT set -x chroot $ROOT apt-get update chroot $ROOT apt-get -y --no-install-recommends -o Dpkg::Use-Pty=false install $EXTRA_PACKAGES chroot $ROOT apt-get clean set +x -trap - SIGINT SIGTERM -umount_in_root zfs snapshot ${BOOTSTRAPFS}@init fi -- cgit v1.2.3