From 17243dd21166860ed4ddb941ac1bfa49e74d2efb Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 1 Nov 2011 20:10:17 +0100 Subject: [PATCH] 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. --- etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4