aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 21:54:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 21:54:32 -0300
commitdd4f7f7affb476f58f268e31125257efd55882c9 (patch)
tree2f44ce8211e327ecdd73ee293a318cac103a0882 /kvmx-create
parentca611af966192367d6adee375662987f5e754f84 (diff)
downloadkvmx-dd4f7f7affb476f58f268e31125257efd55882c9.tar.gz
kvmx-dd4f7f7affb476f58f268e31125257efd55882c9.tar.bz2
Try a different approach for setting LC_ALL and DEBIAN_FRONTEND
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmx-create b/kvmx-create
index 9d4b8c9..43d0dac 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -260,10 +260,12 @@ function kvmx_create_custom {
kvmx_sudo_run mount ${device}${partition_prefix}2 $WORK/
# Trap $WORK umount
- trap 'if [ -e "$WORK" ]; then umount $WORK/{sys,proc,dev} &> /dev/null; umount $WORK &> /dev/null; rmdir $WORK; fi' INT TERM
+ trap 'if [ -e "$WORK" ]; then umount $WORK/{sys,proc,dev} &> /dev/null; umount $WORK &> /dev/null; rmdir $WORK; fi' INT TERM EXIT
# Non-interactive installation
- APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive kvmx_sudo_run chroot $WORK/ apt-get install -y"
+ #APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive kvmx_sudo_run chroot $WORK/ apt-get install -y"
+ #APT_INSTALL="kvmx_sudo_run LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot $WORK/ apt-get install -y"
+ APT_INSTALL="kvmx_sudo_run chroot $WORK/ /usr/bin/env -- LC_ALL=C DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get install -y"
# Initial system install.
echo "Installing base system..."