Magellan Linux

Annotation of /trunk/mkinitrd/patches/mkinitrd-5.0.8-new-kernel-pkg-magellan.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 169 - (hide annotations) (download)
Tue May 8 21:36:54 2007 UTC (17 years, 1 month ago) by niro
File size: 1208 byte(s)
-moved to patches subdir

1 niro 169 --- mkinitrd-5.0.8/grubby/new-kernel-pkg.orig 2007-03-15 19:44:39.000000000 +0100
2     +++ mkinitrd-5.0.8/grubby/new-kernel-pkg 2007-03-15 19:45:18.000000000 +0100
3     @@ -8,13 +8,15 @@
4     #
5     # Copyright (C) 2002-2005 Red Hat, Inc.
6     #
7     +# modified for Magellan-Linux by Niels Rogalla <niro@magellan-linux.de>
8     +#
9    
10     PATH=/sbin:/bin:$PATH
11    
12     lilo=/sbin/lilo
13    
14     # some defaults that are sane for most arches
15     -kernelName=vmlinuz
16     +kernelName=kernel
17    
18     if [ -x ./grubby ]; then
19     grubby=./grubby
20     @@ -140,10 +142,10 @@
21    
22     if [ -n "$banner" ]; then
23     title="$banner ($version)"
24     - elif [ -f /etc/redhat-release ]; then
25     - title="$(sed 's/ release.*$//' < /etc/redhat-release) ($version)"
26     + elif [ -f /etc/mageversion ]; then
27     + title="Magellan Linux $(< /etc/mageversion) ($version)"
28     else
29     - title="Red Hat Linux ($version)"
30     + title="Magellan Linux ($version)"
31     fi
32     /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD \
33     --copy-default $makedefault $mb --title "$title" \
34     @@ -343,6 +345,9 @@
35     usage
36     fi
37    
38     +# make sure that /dev/loop exist
39     +[[ ! -e /dev/loop ]] && modprobe loop
40     +
41     kernelmajor=`echo $kernel | cut -d . -f 1,2`
42    
43     # kernel image for 2.4 is vmlinux