Commit 1397dabe authored by Guido Gunther's avatar Guido Gunther

Set exported variables in one place only

We want it for all apt invocations
parent 36915173
......@@ -174,17 +174,8 @@ function setup_sshd()
# systemd and systemd-shim (e.g. libpam-systemd)
function install_pkgs()
{
# Inspired by https://linux-sunxi.org/Mainline_Debian_HowTo
(
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
export LC_ALL=C
export LANGUAGE=C
export LANG=C
chroot "${basedir}" apt-get -y update
chroot "${basedir}" apt-get -y install ${packages}
)
chroot "${basedir}" apt-get -y update
chroot "${basedir}" apt-get -y install "${packages}"
}
......@@ -243,6 +234,7 @@ mkdir -p "${basedir}/etc/network"
export MALLOC_CHECK_=0 # workaround for LP: #520465
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
cat << EOF > "${basedir}/debconf.set"
console-common console-data/keymap/policy select Select keymap from full list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment