diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-07 17:34:53 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-07 17:34:53 +0300 |
commit | 396af6e8078b08b1521f099b1348eab4f805a156 (patch) | |
tree | d778fe3066ac175f816e75d9ecdd5dfc463f2cae /protostar | |
parent | 026d5dadf529bd21641ef035d1daa42f119d7945 (diff) | |
download | live-396af6e8078b08b1521f099b1348eab4f805a156.tar.gz |
Unmount on exit
Diffstat (limited to 'protostar')
-rwxr-xr-x | protostar | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |