From ad33a379d8f97a32a3bd6eb59d5ea6d56125b087 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 16 Dec 2007 19:12:06 +0100 Subject: [PATCH] Check for presence of live-initramfs in 10-build-initramfs --- debian/changelog | 1 + etc/grml/fai/config/scripts/GRMLBASE/10-build-initramfs | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6e3f6f3..bdfae65 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 ################################################################# -- 2.1.4