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 cf3dfbc18..1e629345e 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -329,7 +329,7 @@ sub read_grub2() {
$entry->{initrd} = $1;
} elsif (/^submenu\s+['"]([^']+)["']/) {
push @menus, $1;
- } elsif (/}/) {
+ } elsif (/^\s+}/) {
if ($entry) {
push @{$bootloader{entries}}, $entry;
undef $entry;