summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-16 15:24:53 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-16 15:24:53 +0000
commitaba3aac607e4be847b5a24bf851655645b1a7033 (patch)
tree08f41033f91eb10e25075b3ef97950b1c4359e23 /perl-install/install_any.pm
parent256a3d708f01887deb6b10fd20bcd867550c0aff (diff)
downloaddrakx-aba3aac607e4be847b5a24bf851655645b1a7033.tar
drakx-aba3aac607e4be847b5a24bf851655645b1a7033.tar.gz
drakx-aba3aac607e4be847b5a24bf851655645b1a7033.tar.bz2
drakx-aba3aac607e4be847b5a24bf851655645b1a7033.tar.xz
drakx-aba3aac607e4be847b5a24bf851655645b1a7033.zip
create function detect_devices::BIGMEM() which calls c::dmiDetectMemory(), but only
if we are root (this helps testings install without dying)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e4898fb18..7c9e1bcb2 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -687,7 +687,7 @@ sub setDefaultPackages {
$o->{rpmsrate_flags_chosen}{USB} = 1 if $o->{modules_conf}->get_probeall("usb-interface");
$o->{rpmsrate_flags_chosen}{PCMCIA} = 1 if detect_devices::hasPCMCIA();
$o->{rpmsrate_flags_chosen}{HIGH_SECURITY} = 1 if $o->{security} > 3;
- $o->{rpmsrate_flags_chosen}{BIGMEM} = 1 if c::dmiDetectMemory() > 4 * 1024;
+ $o->{rpmsrate_flags_chosen}{BIGMEM} = 1 if detect_devices::BIGMEM();
$o->{rpmsrate_flags_chosen}{SMP} = 1 if detect_devices::hasSMP();
$o->{rpmsrate_flags_chosen}{CDCOM} = 1 if any { $_->{descr} =~ /commercial/i } values %{$o->{packages}{mediums}};
$o->{rpmsrate_flags_chosen}{TV} = 1 if detect_devices::getTVcards();