--- mkinitrd-5.0.8/grubby/new-kernel-pkg.orig 2007-03-15 19:44:39.000000000 +0100 +++ mkinitrd-5.0.8/grubby/new-kernel-pkg 2007-03-15 19:45:18.000000000 +0100 @@ -8,13 +8,15 @@ # # Copyright (C) 2002-2005 Red Hat, Inc. # +# modified for Magellan-Linux by Niels Rogalla +# PATH=/sbin:/bin:$PATH lilo=/sbin/lilo # some defaults that are sane for most arches -kernelName=vmlinuz +kernelName=kernel if [ -x ./grubby ]; then grubby=./grubby @@ -140,10 +142,10 @@ if [ -n "$banner" ]; then title="$banner ($version)" - elif [ -f /etc/redhat-release ]; then - title="$(sed 's/ release.*$//' < /etc/redhat-release) ($version)" + elif [ -f /etc/mageversion ]; then + title="Magellan Linux $(< /etc/mageversion) ($version)" else - title="Red Hat Linux ($version)" + title="Magellan Linux ($version)" fi /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD \ --copy-default $makedefault $mb --title "$title" \ @@ -343,6 +345,9 @@ usage fi +# make sure that /dev/loop exist +[[ ! -e /dev/loop ]] && modprobe loop + kernelmajor=`echo $kernel | cut -d . -f 1,2` # kernel image for 2.4 is vmlinux