From 786aa9bcfa26bccfce2cdbbd4a26529b60db24f8 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Mon, 28 Jan 2002 17:23:38 +0000 Subject: fixed get_append if key=mem. --- perl-install/bootloader.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) = @_; -- cgit v1.2.1