98-clean-chroot: do not fail with more than one kernel version installed
authorMichael Prokop <mika@grml.org>
Tue, 1 Nov 2011 19:10:17 +0000 (20:10 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 1 Nov 2011 19:10:19 +0000 (20:10 +0100)
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

index c2f3f77..6357c78 100755 (executable)
@@ -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