summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-01-28 17:23:38 +0000
committerFrancois Pons <fpons@mandriva.com>2002-01-28 17:23:38 +0000
commit786aa9bcfa26bccfce2cdbbd4a26529b60db24f8 (patch)
treeaef5c6a0f11840749c923d2c69cf3af454c1eb85 /perl-install
parente831727bb0d89d24da594f094f6339ff86bddfb8 (diff)
downloaddrakx-786aa9bcfa26bccfce2cdbbd4a26529b60db24f8.tar
drakx-786aa9bcfa26bccfce2cdbbd4a26529b60db24f8.tar.gz
drakx-786aa9bcfa26bccfce2cdbbd4a26529b60db24f8.tar.bz2
drakx-786aa9bcfa26bccfce2cdbbd4a26529b60db24f8.tar.xz
drakx-786aa9bcfa26bccfce2cdbbd4a26529b60db24f8.zip
fixed get_append if key=mem.
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) = @_;