From b5b516e1614b96774fa387972d14cc20243b5607 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 26 Jun 2005 08:32:58 +0000 Subject: (write_grub) fix root when using labels and switching from LILO to GRUB --- perl-install/bootloader.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 80bf67880..e97395979 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1268,9 +1268,11 @@ sub write_grub { if ($_->{type} eq "image") { my $vga = $_->{vga} || $bootloader->{vga}; + my $root = $_->{root}; + $root =~ s/"//g; push @conf, $title, join(' ', 'kernel', $file2grub->($_->{kernel_or_dev}), - if_($_->{root}, $_->{root} =~ /loop7/ ? "root=707" : "root=$_->{root}"), #- special to workaround bug in kernel (see #ifdef CONFIG_BLK_DEV_LOOP) + if_($root, $root =~ /loop7/ ? "root=707" : "root=$root"), #- special to workaround bug in kernel (see #ifdef CONFIG_BLK_DEV_LOOP) $_->{append}, if_($_->{'read-write'}, 'rw'), if_($vga && $vga ne "normal", "vga=$vga")); -- cgit v1.2.1