diff options
author | Francois Pons <fpons@mandriva.com> | 2002-01-28 17:23:38 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-01-28 17:23:38 +0000 |
commit | 786aa9bcfa26bccfce2cdbbd4a26529b60db24f8 (patch) | |
tree | aef5c6a0f11840749c923d2c69cf3af454c1eb85 /perl-install/bootloader.pm | |
parent | e831727bb0d89d24da594f094f6339ff86bddfb8 (diff) | |
download | drakx-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/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 6 |
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) = @_; |