summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 2512842a2..2c7abf830 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1800,8 +1800,9 @@ sub write_grub2 {
# set default parameters:
my ($entry) = grep { $_->{kernel_or_dev} =~ /vmlin/ } @{$bootloader->{entries}};
my $append = $entry->{append};
- $append =~ s/root=\S+//;
- $append =~ s/\bro\b//;
+ $append =~ s/root=\S+//g;
+ $append =~ s/\bro\b//g;
+ $append =~ s/\s+/ /g;
my $f = "$::prefix/etc/default/grub";
my %conf = getVarsFromSh($f);