diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-04-05 11:34:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-04-05 11:34:00 +0000 |
commit | 3e2cb0ee651d8788bf72488766819f675fa5734f (patch) | |
tree | 0c34848a505ff45341715e69e482a11fdc105e30 /perl-install/bootloader.pm | |
parent | 7625287416073a669b3f7d4a8836a4bcdaf0d563 (diff) | |
download | drakx-3e2cb0ee651d8788bf72488766819f675fa5734f.tar drakx-3e2cb0ee651d8788bf72488766819f675fa5734f.tar.gz drakx-3e2cb0ee651d8788bf72488766819f675fa5734f.tar.bz2 drakx-3e2cb0ee651d8788bf72488766819f675fa5734f.tar.xz drakx-3e2cb0ee651d8788bf72488766819f675fa5734f.zip |
set entries type when reading back grub2 conf
thus fixing switching back to grub-legacy (mga#9563)
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 461f94760..d8146905d 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -245,6 +245,7 @@ sub read_grub2 { push @{$bootloader{entries}}, $entry if $entry; $entry = { label => $1 }; } elsif (/linux\s+(\S+)\s+(.*)?/ || /module\s+(\S+vmlinu\S+)\s+(.*)?/) { + $entry->{type} = 'image'; @$entry{qw(kernel_or_dev append)} = ($1, $2); } elsif (/initrd\s+(\S+)/ || /module\s+(\S+initrd\S+)\s+(.*)?/) { $entry->{initrd} = $1; |