summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-11-29 13:27:36 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-11-29 13:27:36 +0000
commit044b26d67ffc8414b03db679effecbdb68c3be1b (patch)
tree19436ab58dec022dacc3600124e828825f4666fd /perl-install/install_any.pm
parent2e04a06a7cc6b272138d947e440929831e987265 (diff)
downloaddrakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar
drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.gz
drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.bz2
drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.tar.xz
drakx-044b26d67ffc8414b03db679effecbdb68c3be1b.zip
better support for DELL laptops (inspirated from drivers/char/i8k.c's audit)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 4c27f3ffd..afd3e086d 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -648,6 +648,10 @@ sub setDefaultPackages {
push @{$o->{default_packages}}, "mdadm" if !is_empty_array_ref($o->{all_hds}{raids});
push @{$o->{default_packages}}, "lvm2" if !is_empty_array_ref($o->{all_hds}{lvms});
push @{$o->{default_packages}}, "alsa", "alsa-utils" if any { $o->{modules_conf}->get_alias("sound-slot-$_") =~ /^snd-/ } 0 .. 4;
+ my ($dmi) = grep { $_->{name} eq 'System' } detect_devices::dmidecode();
+ if ($dmi->{Manufacturer} eq "Dell Computer" && member($dmi->{'Product Name'}, qw(Inspiron Latitude))) {
+ push @{$o->{default_packages}}, "i8kutils"
+ }
push @{$o->{default_packages}}, "grub" if isLoopback(fs::get::root($o->{fstab}));
push @{$o->{default_packages}}, uniq(grep { $_ } map { fs::format::package_needed_for_partition_type($_) } @{$o->{fstab}});