summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-04-23 14:32:47 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-04-23 14:32:47 +0200
commit034540283ee7a0e6e29a20687f6e97121330df70 (patch)
tree3b616c21dd3d830197c158108e8389bb1f228851 /perl-install/detect_devices.pm
parent8de9dced1b230c5ebda93413748d9f5f694af8d4 (diff)
downloaddrakx-034540283ee7a0e6e29a20687f6e97121330df70.tar
drakx-034540283ee7a0e6e29a20687f6e97121330df70.tar.gz
drakx-034540283ee7a0e6e29a20687f6e97121330df70.tar.bz2
drakx-034540283ee7a0e6e29a20687f6e97121330df70.tar.xz
drakx-034540283ee7a0e6e29a20687f6e97121330df70.zip
add 'qemu' flag for rpmsrate
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index e77a57479..770cbbdde 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1481,6 +1481,16 @@ sub is_hyperv() {
virt_technology() eq 'microsoft';
}
+=item is_qemu()
+
+Are we running under Qemu hypervisor?
+
+=cut
+
+sub is_qemu() {
+ virt_technology() eq 'microsoft';
+}
+
=item is_virtualbox()
Are we running under VirtualBox hypervisor?
@@ -1560,6 +1570,7 @@ sub matching_types() {
mips_st_ls2f => is_mips_st_ls2f(),
numpa => hasNumpad(),
touchpad => hasTouchpad(),
+ qemu => is_qemu(),
virtualbox => is_virtualbox(),
vmware => is_vmware(),
wireless => to_bool(get_wireless_interface() || probe_category('network/wireless')),