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
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
}
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.