summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 16016b613..2a3ab9905 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -183,7 +183,11 @@ sub add_kernel {
sub get_append {
my ($b, $key) = @_;
- ($b->{perImageAppend} =~ /\b$key=(\S*)/)[0];
+ if ($key eq 'mem') {
+ ($b->{perImageAppend} =~ /\bmem=(\d+[KkMm]?)(?:\s.*)?$/)[0];
+ } else {
+ ($b->{perImageAppend} =~ /\b$key=(\S*)/)[0];
+ }
}
sub add_append {
my ($b, $key, $val) = @_;