X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Fupdatebase.GRMLBASE;h=063cae487aeae7a847870612430f5706672813c2;hp=f88f0fb988677163b81ec9833b20041613220929;hb=51fbcc7c7595303dd703d13d18ccab018ec617bf;hpb=a242e27306035a23c96bf5b07b0840942ed245fb diff --git a/etc/grml/fai/config/hooks/updatebase.GRMLBASE b/etc/grml/fai/config/hooks/updatebase.GRMLBASE index f88f0fb..063cae4 100755 --- a/etc/grml/fai/config/hooks/updatebase.GRMLBASE +++ b/etc/grml/fai/config/hooks/updatebase.GRMLBASE @@ -8,20 +8,23 @@ set -u set -e +. "$GRML_LIVE_CONFIG" # visualize chroot inside zsh: echo grml_chroot > $target/etc/debian_chroot -HOSTNAME='' -[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf -[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local -[ -n "$HOSTNAME" ] || HOSTNAME=grml echo "$HOSTNAME" > $target/etc/hostname +if [ -n "${APT_PROXY:-}" ] ; then + cat > $target/etc/apt/apt.conf.d/90grml-apt-proxy.conf <