summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index ad55cfde4..288ce6917 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -310,8 +310,8 @@ sub setupBootloader__general {
bootloader::set_profiles($b, $profiles);
bootloader::set_append($b, "mem", $memsize);
if ($force_acpi) {
- $in->do_pkgs->ensure_is_installed('acpi', "/usr/bin/acpi", 1) or $force_acpi = 0;
- $in->do_pkgs->ensure_is_installed('acpid', "/usr/sbin/acpid", 1) or $force_acpi = 0;
+ $in->do_pkgs->install(qw(acpi acpid));
+ -x "$::prefix/usr/bin/acpi" && -x "$::prefix/usr/sbin/acpid" or $force_acpi = 0;
$force_acpi or log::l("deactivating acpi as no acpi nor acpid packages are present");
}
if ($prev_force_acpi != $force_acpi) {