diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-07-24 23:25:01 +0100 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2018-01-09 23:06:56 +0200 |
commit | 4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181 (patch) | |
tree | 473c2017ee66bb7f62bbf78b0c94b9a742acc70d /perl-install/bootloader.pm | |
parent | f70da6dee2087dbcb26e1ae6e00c5ea859c0c787 (diff) | |
download | drakx-4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181.tar drakx-4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181.tar.gz drakx-4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181.tar.bz2 drakx-4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181.tar.xz drakx-4d96d7a4c32186d7597f2f8f6f75eb1d8c9bf181.zip |
Fix parsing of grub2 menu entries to support 16-bit mode (mga#21247).
This enables bootloader::read_grub2 to recognise the initrd16 keyword,
which is used by default on x86 machines.
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 71ebbecf7..c10187002 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -329,7 +329,7 @@ sub read_grub2() { $entry->{vga} = $vga->[0] =~ /vga=(.*)/ && $1; $entry->{append} = join(' ', @$other); } - } elsif (/initrd\s+(\S+)/ || /module\s+(\S+initrd\S+)\s+(.*)?/) { + } elsif (/initrd(?:16)?\s+(\S+)/ || /module\s+(\S+initrd\S+)\s+(.*)?/) { $entry->{initrd} = $1; } elsif (/submenu\s+['"]([^']+)["']/) { push @menus, $1; |