]> spindle.queued.net Git - xodist/commitdiff
mkext3: don't allow a build that lacks a kernel image to succeed
authorAndres Salomon <dilinger@collabora.co.uk>
Mon, 1 Jun 2009 21:19:26 +0000 (17:19 -0400)
committerAndres Salomon <dilinger@collabora.co.uk>
Mon, 1 Jun 2009 21:19:26 +0000 (17:19 -0400)
'Cause, y'know, it won't actually boot. :)

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
mkext3.sh

index 2960e275335110ad2d9ed51892918e2e128483b3..677391c35685da3f8bde25643b9782e8e280e783 100755 (executable)
--- 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<<EOF
 
 title          Debian GNU/Linux, kernel ${v}