From: Andres Salomon Date: Mon, 1 Jun 2009 21:19:26 +0000 (-0400) Subject: mkext3: don't allow a build that lacks a kernel image to succeed X-Git-Tag: v0.6~51 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d0617472c4d98f0e4a13d8a28f7e9493c961dd0;p=xodist 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 --- 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<