summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.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/pkgs.pm
parent256a3d708f01887deb6b10fd20bcd867550c0aff (diff)
downloaddrakx-backup-do-not-use-aba3aac607e4be847b5a24bf851655645b1a7033.tar
drakx-backup-do-not-use-aba3aac607e4be847b5a24bf851655645b1a7033.tar.gz
drakx-backup-do-not-use-aba3aac607e4be847b5a24bf851655645b1a7033.tar.bz2
drakx-backup-do-not-use-aba3aac607e4be847b5a24bf851655645b1a7033.tar.xz
drakx-backup-do-not-use-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/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index d42dad558..3312b514f 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -207,7 +207,7 @@ sub bestKernelPackage {
}
my @prefered_exts =
detect_devices::is_i586() ? '-i586-up-1GB' :
- (arch() !~ /x86_64|ia64/ && c::dmiDetectMemory() > 4 * 1024) ? ('-enterprise', '-smp') :
+ detect_devices::BIGMEM() ? ('-enterprise', '-smp') :
detect_devices::hasSMP() ? '-smp' :
'';
foreach my $prefered_ext (@prefered_exts, '') {