aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:25:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:25:21 -0300
commit4f4c8ce9d34af8ccf38cecd35121206b2d29fc56 (patch)
tree7681f27c7160e7714ee5f2f97f6f555f03ab736a
parent42732078c9050522ea08b22fae6a4d639fac4929 (diff)
downloadkvmx-4f4c8ce9d34af8ccf38cecd35121206b2d29fc56.tar.gz
kvmx-4f4c8ce9d34af8ccf38cecd35121206b2d29fc56.tar.bz2
Export LC_ALL and DEBIAN_FRONTEND at kvmx-create
-rwxr-xr-xkvmx-create10
1 files changed, 7 insertions, 3 deletions
diff --git a/kvmx-create b/kvmx-create
index 2d3e8b8..6dc16c9 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -23,6 +23,10 @@ BASENAME="`basename $0`"
DIRNAME="`dirname $0`"
GLOBAL_USER_CONFIG_FILE="$HOME/.config/kvmxconfig"
+# Environment config
+export LC_ALL=C
+export DEBIAN_FRONTEND=noninteractive
+
# Load basic functions
export APP_BASE="`$DIRNAME/kvmx app_base`"
source $APP_BASE/lib/kvmx/functions || exit 1
@@ -75,7 +79,7 @@ function kvmx_install_package {
if [ "$?" == "1" ]; then
echo "Installing package $1..."
- DEBIAN_FRONTEND=noninteractive $SUDO apt-get install $1 -y || exit 1
+ $SUDO apt-get install $1 -y || exit 1
fi
}
@@ -256,11 +260,11 @@ function kvmx_create_custom {
kvmx_sudo_run mount ${device}${partition_prefix}2 $WORK/
# Non-interactive installation
- APT_INSTALL="kvmx_sudo_run LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot $WORK/ apt-get install -y"
+ APT_INSTALL="kvmx_sudo_run chroot $WORK/ apt-get install -y"
# Initial system install.
echo "Installing base system..."
- kvmx_sudo_run LC_ALL=C DEBIAN_FRONTEND=noninteractive debootstrap \
+ kvmx_sudo_run debootstrap \
--force-check-gpg --arch=$arch $version $WORK/ $mirror
# Initial configuration.