From 8d0617472c4d98f0e4a13d8a28f7e9493c961dd0 Mon Sep 17 00:00:00 2001 From: Andres Salomon Date: Mon, 1 Jun 2009 17:19:26 -0400 Subject: [PATCH] mkext3: don't allow a build that lacks a kernel image to succeed 'Cause, y'know, it won't actually boot. :) Signed-off-by: Andres Salomon --- mkext3.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkext3.sh b/mkext3.sh index 2960e27..677391c 100755 --- a/mkext3.sh +++ b/mkext3.sh @@ -99,6 +99,10 @@ EOF grep -q ' ${mntpt}/boot ' /proc/mounts && prefix=/boot for kern in ${mntpt}/boot/vmlinuz-*; do v=$(basename $kern | sed 's/vmlinuz-//') + if [ "${v}" = '*' ]; then + echo "*** Error: no kernel images found in /boot!" 1>&2 + exit 1 + fi cat >>${mntpt}/boot/grub/menu.lst<