Check for presence of live-initramfs in 10-build-initramfs
authorMichael Prokop <devnull@localhost>
Sun, 16 Dec 2007 18:12:06 +0000 (19:12 +0100)
committerMichael Prokop <devnull@localhost>
Sun, 16 Dec 2007 18:12:06 +0000 (19:12 +0100)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs

index 6e3f6f3..bdfae65 100644 (file)
@@ -9,6 +9,7 @@ grml-live (0.0.13) unstable; urgency=low
   * Improve /etc/resolv.conf handling in
     /etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs
   * Disable Recommends for aptitude as well.
+  * Check for presence of live-initramfs in 10-build-initramfs.
   * Do some further cleanups via /etc/grml/fai/grml/grml_cleanup_chroot.deborphan
   * Remove hwtools from GRML_FULL, see #397723
   * Remove several packages from GRMLBASE and integrate them in GRML_MEDIUM
index 923b754..62f15f5 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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 #################################################################