X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fhooks%2Finstsoft.GRMLBASE;h=7222028c4104bf9fa23027c0832aa31772cc6d36;hb=9f895a24c545eac37a5ffd4ed27c1de57765d5ea;hp=15093e4996719d333e5835f8d44c2ffce8d6aaae;hpb=6c669267538d070ddf00f89727087e071a64efd6;p=grml-live-grml.git diff --git a/etc/grml/fai/config/hooks/instsoft.GRMLBASE b/etc/grml/fai/config/hooks/instsoft.GRMLBASE index 15093e4..7222028 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: Mon Nov 12 11:14:32 CET 2007 [mika] ################################################################################ set -u @@ -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" @@ -44,6 +49,13 @@ 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