diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx-create b/kvmx-create index ae42c39..0375cf6 100755 --- a/kvmx-create +++ b/kvmx-create @@ -259,6 +259,9 @@ function kvmx_create_custom { kvmx_sudo_run mkfs.ext4 ${device}${partition_prefix}2 kvmx_sudo_run mount ${device}${partition_prefix}2 $WORK/ + # Trap $WORK umount + trap 'umount $WORK && rmdir $WORK' INT TERM + # Non-interactive installation APT_INSTALL="kvmx_sudo_run chroot $WORK/ apt-get install -y" |