X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F10-build-initramfs;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F10-build-initramfs;h=62f15f5dae3440f7c48cf50039d04e4456cc8c09;hb=ad33a379d8f97a32a3bd6eb59d5ea6d56125b087;hp=923b754fa16aa6bb9749af16374b60db8a58eb2e;hpb=59f245230b67991e4bad1a5e18fcbfe4ea39acf3;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs b/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs index 923b754..62f15f5 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs +++ b/etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs @@ -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: Thu Oct 18 14:02:50 CEST 2007 [mika] +# Latest change: Sun Dec 16 19:11:33 CET 2007 [mika] ################################################################################ set -e @@ -24,8 +24,13 @@ KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}") if [ -z "$KERNELVERSION" ] ; then echo "Error: No kernel found, can not create initramfs. Exiting.">&2 exit 1 -else +fi + +if [ -f /usr/share/initramfs-tools/scripts/live ] ; then $ROOTCMD update-initramfs -c -t -k $KERNELVERSION +else + echo "Error: live-initramfs does not seem to be present, can not create initramfs. Exiting.">&2 + exit 1 fi ## END OF FILE #################################################################