summaryrefslogtreecommitdiff
path: root/protostar
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-07 17:34:53 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-07 17:34:53 +0300
commit396af6e8078b08b1521f099b1348eab4f805a156 (patch)
treed778fe3066ac175f816e75d9ecdd5dfc463f2cae /protostar
parent026d5dadf529bd21641ef035d1daa42f119d7945 (diff)
downloadlive-396af6e8078b08b1521f099b1348eab4f805a156.tar.gz
Unmount on exit
Diffstat (limited to 'protostar')
-rwxr-xr-xprotostar4
1 files changed, 1 insertions, 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