X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=def9e17458c29f5a06039864a2f3debdbb7fc4ba;hp=ac85fd9b1f6f07ded01171fe5d94a8f57bafa1e0;hb=d09708b40e7d2d06a172da9c167348e2fa44558b;hpb=69bd31ca5e652942465995e320b7852fc5cf2a06 diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index ac85fd9..def9e17 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -13,6 +13,11 @@ set -e # visualize chroot inside zsh: echo grml_chroot > $target/etc/debian_chroot +HOSTNAME='' +[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf +[ -n "$HOSTNAME" ] || HOSTNAME=grml +echo "$HOSTNAME" > $target/etc/hostname + if [ "$FAI_ACTION" = "softupdate" ] ; then echo "Softupdate of FAI via grml-live running" @@ -57,19 +62,6 @@ EOF fi cp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.list fi - - # FAI softupdate does not execute upgrade, so let's do it on our own: - $ROOTCMD apt-get update - if [ -x $target/usr/bin/aptitude ] ; then - if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then - $ROOTCMD aptitude -y safe-upgrade - else - $ROOTCMD aptitude -y upgrade - fi - else - $ROOTCMD apt-get -y upgrade - fi - else # no softupdate but fresh installation # work around http://trac.lighttpd.net/trac/ticket/657