X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fupdatebase.UBUNTU;h=55971e8b8d58a0c257870b5ae5d0d4da521de952;hb=dce9fd7e6023976f6e9622f035d5cab34479a68d;hp=2d1161c5ea833e12eb6284023962fb7f73fbd4a8;hpb=7ade5e2c6113530c5f99cfc95880897fcb479f39;p=automated-distro-installer diff --git a/fai/config/hooks/updatebase.UBUNTU b/fai/config/hooks/updatebase.UBUNTU index 2d1161c..55971e8 100755 --- a/fai/config/hooks/updatebase.UBUNTU +++ b/fai/config/hooks/updatebase.UBUNTU @@ -1,15 +1,5 @@ #! /bin/bash -# use external mirror, remove this script when using a mirror from CD - -cat < $target/etc/apt/sources.list -# external mirror -deb $ubuntumirror/ubuntu $ubuntudist main restricted universe multiverse -deb $ubuntumirror/ubuntu $ubuntudist-updates main restricted universe multiverse -deb $ubuntumirror/ubuntu $ubuntudist-security main restricted universe multiverse -EOM - - # https://lists.uni-koeln.de/pipermail/linux-fai/2016-July/011398.html # In Ubuntu 16.04 (but not 14.04), the locales configuration mechanism has # changed. There is a /var/lib/dpkg/info/locales.config file, which @@ -19,12 +9,35 @@ EOM # hook applies the debconf setting. It must run after FAI's debconf task # but before dpkg gets a chance to clobber debconf with an empty setting. +# todo: debconf-get-selections did not show our locale settings. +# +# this could be related in the fai.log +# +#Calling task_debconf +# Adding debconf data from /var/lib/fai/config/debconf/DEBIAN +# Reconfiguring package keyboard-configuration +# Your console font configuration will be updated the next time your system +# boots. If you want to update it now, run 'setupcon' from a virtual console. +# debconf: DbDriver "_ENV_stack": unable to save changes to: console-setup/ask_detect keyboard-configuration/model keyboard-configuration/model keyboard-configuration/modelcode keyboard-configuration/variant keyboard-configuration/variant keyboard-configuration/optionscode keyboard-configuration/store_defaults_in_debconf_db + +# todo fix the dropbear cat not found issue. +# +# if [ ! -f "$target/var/lib/locales/supported.d/local" ]; then - $ROOTCMD debconf --owner=locales sh -c ' + if $ROOTCMD debconf --owner=locales sh -c ' . /usr/share/debconf/confmodule db_version 2.0 db_get locales/locales_to_be_generated && mkdir -p /var/lib/locales/supported.d && - echo "$RET" > /var/lib/locales/supported.d/local' && + echo "$RET" > /var/lib/locales/supported.d/local'; then $ROOTCMD dpkg-reconfigure locales + fi fi + + +# mk-basefile doesn't use the -updates suite, then we unpack it, then we +# install sources.list that has -updates and we install random +# packages. It might avoid a problem if we a dist-upgrade first. + +$ROOTCMD apt-get update +$ROOTCMD apt-get -y dist-upgrade --purge --auto-remove