X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Finstsoft.DEBIAN;h=d6f1ad1f5b9fcd8cd417292b8a90adac09f77e40;hb=fd75a734a7149cf203553d36270482af37e680da;hp=41191730a3a11a48ad13f07857184ce65dcdc0be;hpb=11a2db1a576e78f58af7f1e7e4c83422635b630d;p=automated-distro-installer diff --git a/fai/config/hooks/instsoft.DEBIAN b/fai/config/hooks/instsoft.DEBIAN index 4119173..d6f1ad1 100755 --- a/fai/config/hooks/instsoft.DEBIAN +++ b/fai/config/hooks/instsoft.DEBIAN @@ -9,12 +9,10 @@ fi fcopy -Bi /etc/apt/apt.conf.d/force_confdef -# ian: on flidas this gives an error: update-locale: Error: invalid locale settings: LANG=en_US.UTF-8 -# # in case the locales are already included inside the base file (Ubuntu) -# if [ -f $target/usr/sbin/locale-gen ]; then -# $ROOTCMD dpkg-reconfigure -fnoninteractive locales -# exit -# fi +# in case the locales are already included inside the base file (Ubuntu) +if [ -f $target/usr/sbin/locale-gen ]; then + exit +fi # if we want to install locales, install them now install_packages -l 2>/dev/null | egrep -q ' locales|locales ' @@ -25,3 +23,6 @@ if [ $? -eq 0 ]; then $ROOTCMD apt-get -y install locales > /dev/null fi fi + +# use zstd for dracut initrd +ainsl -av /etc/dracut.conf.d/11-debian.conf "compress=zstd"