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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index d790bf480..b7480dda0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -101,7 +101,7 @@ sub read_grub() {
} elsif ($global) {
$b{$keyword} = $v eq '' ? 1 : ungrubify($v);
} else {
- $e->{root} = $1 if $v =~ s/root=([^\s]*)\s*//;
+ $e->{root} = $1 if $v =~ s/root=(\S*)\s*//;
if ($keyword eq 'kernel') {
($e->{kernel_or_dev}, $e->{append}) = split /\s+/, ungrubify($v), 2;
$e->{type} = 'image';