From: Michael Prokop Date: Tue, 1 Nov 2011 19:10:17 +0000 (+0100) Subject: 98-clean-chroot: do not fail with more than one kernel version installed X-Git-Tag: v0.17.0~130 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=17243dd21166860ed4ddb941ac1bfa49e74d2efb 98-clean-chroot: do not fail with more than one kernel version installed grml-live (well, the ISO) doesn't support more than one kernel version, but don't fail in this script if more than one kernel configuration is present. Thanks for reporting, Christian. --- diff --git a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot index c2f3f77..6357c78 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot @@ -9,7 +9,7 @@ set -u set -e -if ! [ $(ls $target/boot/config-* 2>/dev/null) ] ; then +if ! ls $target/boot/config-* &>/dev/null ; then echo "No kernel config files (/boot/config-*) found. No kernel-image package installed?" >&2 exit 1 fi