1 |
--- /grubby/new-kernel-pkg.org 2007-03-15 16:19:23.000000000 -0400 |
2 |
+++ /grubby/new-kernel-pkg 2007-03-21 15:10:36.000000000 -0400 |
3 |
@@ -151,10 +151,15 @@ install() { |
4 |
if [ -n "$cfgLilo" ]; then |
5 |
[ -n "$verbose" ] && echo "adding $version to $liloConfig" |
6 |
|
7 |
+ initrdnum=$(echo "-$initrdfile" | sed 's/\/boot.*img//') |
8 |
+ if [ "$initrdnum" = "-" ]; then |
9 |
+ initrdnum="" |
10 |
+ fi |
11 |
+ |
12 |
$grubby --add-kernel=$bootPrefix/$kernelName-$version $INITRD \ |
13 |
- --copy-default $makedefault --title $version \ |
14 |
+ --copy-default $makedefault --title "$version$initrdnum" \ |
15 |
${mbkernel:+--add-multiboot="$mbkernel"} ${mbargs:+--mbargs="$mbargs"} \ |
16 |
- --args="root=$rootdevice $kernargs" --remove-kernel="TITLE=$version" \ |
17 |
+ --args="root=$rootdevice $kernargs" --remove-kernel="TITLE=$version$initrdnum" \ |
18 |
--$liloFlag |
19 |
|
20 |
if [ -n "$runLilo" ]; then |