"R.I.P. Deaddog" <[EMAIL PROTECTED]> writes:

> It can be seen that I use /dev/hda6 for / and /dev/hda5 for /boot.
> However /boot is not stripped from kernel entry, and no (hdx,y) entry is
> added to initrd entry, causing me to reboot so many times to discover this
> :(


this should be fixed in last initscripts, or apply this patches to
/usr/share/loader/grub :

Index: grub
===================================================================
RCS file: /home/cvs/cooker/soft/initscripts/mandrake/loader/grub,v
retrieving revision 1.6
retrieving revision 1.8
diff -u -r1.6 -r1.8
--- grub        2001/03/31 22:41:03     1.6
+++ grub        2001/04/03 15:39:43     1.8
@@ -7,7 +7,7 @@
 # Redistribution of this file is permitted under the terms of the GNU 
 # Public License (GPL)
 #--------------------------------------------------------------------
-# $Id: grub,v 1.6 2001/03/31 22:41:03 chmouel Exp $
+# $Id: grub,v 1.8 2001/04/03 15:39:43 chmouel Exp $
 #--------------------------------------------------------------------
 ## description: 
 #            Add/check entry for grub bootloader.
@@ -18,6 +18,7 @@
 
 my $debug = 0;
 my ($version, $title, $remove);
+my $boot="/boot/";
 
 while ( $ARGV[0] =~ /^-/ ) {
     $_ = shift;
@@ -99,11 +100,11 @@
     open O, ">$output";
     select O unless $debug;
     while (<F>) {
-       if (m@title $glabel\nkernel.*/boot/vmlinuz-$version.*?(?=(title|$))@s) {
-           if (m@title $glabel\nkernel.*/boot/vmlinuz-$version.*title@s) {
-               $_ =~ s@title $glabel\nkernel.*/boot/vmlinuz-$version.*?(?=title)@@s;
+       if (m@title $glabel\nkernel.*vmlinuz-$version.*?(?=(title|$))@s) {
+           if (m@title $glabel\nkernel.*vmlinuz-$version.*title@s) {
+               $_ =~ s@title $glabel\nkernel.*vmlinuz-$version.*?(?=title)@@s;
            } else {
-               $_ =~ s@title $glabel\nkernel.*/boot/vmlinuz-$version.*$@@s;
+               $_ =~ s@title $glabel\nkernel.*vmlinuz-$version.*$@@s;
            }
        }
        print;
@@ -119,7 +120,7 @@
        print "\n";
        print << "EOF";
 title $glabel
-kernel $grub_partition/boot/vmlinuz-$version root=$root_device
+kernel $grub_partition${boot}vmlinuz-$version root=$root_device
 EOF
 if ( -f "/boot/initrd-$version.img" ) {
     print "initrd /boot/initrd-$version.img\n";
@@ -149,7 +150,10 @@
     while (<F>) {
        my @s = split ' ';
        $part = $s[0] if $s[1] =~ m|/$| and not $part;
-       $part = $s[0] if $s[1] =~ m|/boot$|;
+       if ($s[1] =~ m|/boot$|) {
+           $boot="./";
+           $part = $s[0];
+       }
     }; 
     close F;
     return  $part


-- 
MandrakeSoft Inc                     http://www.chmouel.org
                      --Chmouel

Reply via email to