X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FUBUNTU%2F90-apt;h=5e2d1e3e604138b75b5c66dd3cb4c08080e090dd;hb=e6c8a36522847eca91819ab3eb656dd824bc3e3c;hp=072e5603199f94dd25449857849f31e2d6920e3a;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/scripts/UBUNTU/90-apt b/fai/config/scripts/UBUNTU/90-apt old mode 100755 new mode 100644 index 072e560..5e2d1e3 --- a/fai/config/scripts/UBUNTU/90-apt +++ b/fai/config/scripts/UBUNTU/90-apt @@ -1,18 +1,10 @@ #! /bin/bash -# check if we already use an external mirror -grep -q "external mirror" $target/etc/apt/sources.list && exit 0 - -dist=trusty - -cat < $target/etc/apt/sources.list -# external mirror -deb MIRRORURL $dist main restricted universe multiverse -deb MIRRORURL $dist-updates main restricted universe multiverse -deb MIRRORURL $dist-security main restricted universe multiverse -EOM - -# determine a fast mirror for Ubuntu -list=$(curl -s http://mirrors.ubuntu.com/mirrors.txt) -mirror=$(netselect $list | awk '{print $2}') -sed -i -e "s#MIRRORURL#$mirror#" $target/etc/apt/sources.list +# note: the name of this scripts doesn't fit it's contents, but it's +# because we are taking just part of the corresponding fai example +# script, and it's easier to keep up with upstream changes if the file +# name is the same. + +ainsl -v /etc/locale.gen '^en_US.UTF-8 UTF-8' +$ROOTCMD locale-gen +$ROOTCMD update-locale LANG=en_US.UTF-8