X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=4d087e72e29962d45ee63724a1a16cda30e9eaeb;hb=130429e20fb319f3ec6a457f3219b7e52216b542;hp=15093e4996719d333e5835f8d44c2ffce8d6aaae;hpb=6c669267538d070ddf00f89727087e071a64efd6;p=grml-live.git diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 15093e4..4d087e7 100755 --- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE +++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Mon Nov 05 22:48:02 CET 2007 [mika] +# Latest change: Sun Nov 25 18:28:54 CET 2007 [mika] ################################################################################ set -u @@ -13,6 +13,12 @@ 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 +[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local +[ -n "$HOSTNAME" ] || HOSTNAME=grml +echo "$HOSTNAME" > $target/etc/hostname + if [ "$FAI_ACTION" = "softupdate" ] ; then echo "Softupdate of FAI via grml-live running" @@ -44,25 +50,19 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then //DPkg::Tools::Options::/usr/sbin/apt-listbugs::Version "2"; EOF + # make sure we can handle kernel upgrades: + if [ -r $target/etc/kernel-img.conf ] ; then + if ! grep -q "silent_modules = Yes" $target/etc/kernel-img.conf ; then + echo "silent_modules = Yes" >> $target/etc/kernel-img.conf + fi + fi + if [ -r /etc/grml/fai/apt/sources.list ] ; then if [ -L $target/etc/apt/sources.list ] ; then rm $target/etc/apt/sources.list 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