summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 3 insertions, 1 deletions
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"));