summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorArnaud Patard <rtp@mageia.org>2011-03-18 21:25:31 +0000
committerArnaud Patard <rtp@mageia.org>2011-03-18 21:25:31 +0000
commit071f701fb4148c83c8c9c0f121150468fa5a064b (patch)
tree7c2de670eb52d94da871e89f42ca2e3d42194674 /perl-install/any.pm
parent51f081cd0ac8d1f895f39244747b96082a6d0a6a (diff)
downloaddrakx-071f701fb4148c83c8c9c0f121150468fa5a064b.tar
drakx-071f701fb4148c83c8c9c0f121150468fa5a064b.tar.gz
drakx-071f701fb4148c83c8c9c0f121150468fa5a064b.tar.bz2
drakx-071f701fb4148c83c8c9c0f121150468fa5a064b.tar.xz
drakx-071f701fb4148c83c8c9c0f121150468fa5a064b.zip
- try to parse DMI informations only on x86 to avoid reading/writing some random
memory location on arm/mips
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 70ce7a6c8..fb73df348 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1254,7 +1254,7 @@ sub report_bug {
join '', map { chomp; "$_\n" }
header("lspci"), detect_devices::stringlist(),
header("pci_devices"), cat_("/proc/bus/pci/devices"),
- header("dmidecode"), `dmidecode`,
+ header("dmidecode"), arch() =~ /86/ ? `dmidecode` : (),
header("fdisk"), arch() =~ /ppc/ ? `pdisk -l` : `fdisk -l`,
header("scsi"), cat_("/proc/scsi/scsi"),
header("/sys/bus/scsi/devices"), -d '/sys/bus/scsi/devices' ? `ls -l /sys/bus/scsi/devices` : (),