summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-27 08:58:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-27 08:58:09 +0000
commit9d4845f779a1486cf265064b1c8e3c0c5177c197 (patch)
tree4ab2f7150643a3475d5d1e695fb339925e81444e /perl-install/any.pm
parenta3989b83e00b151543953e96886fde51532055f0 (diff)
downloaddrakx-9d4845f779a1486cf265064b1c8e3c0c5177c197.tar
drakx-9d4845f779a1486cf265064b1c8e3c0c5177c197.tar.gz
drakx-9d4845f779a1486cf265064b1c8e3c0c5177c197.tar.bz2
drakx-9d4845f779a1486cf265064b1c8e3c0c5177c197.tar.xz
drakx-9d4845f779a1486cf265064b1c8e3c0c5177c197.zip
split {get,set}_append() into {get,set}_append_with_key() and {get,set}_append_simple()
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm18
1 files changed, 9 insertions, 9 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 0e0392f70..817ffab51 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -82,7 +82,7 @@ sub hdInstallPath() {
sub install_acpi_pkgs {
my ($do_pkgs, $b) = @_;
- my $acpi = bootloader::get_append($b, 'acpi') or return;
+ my $acpi = bootloader::get_append_with_key($b, 'acpi') or return;
if (!member($acpi, 'off', 'ht')) {
$do_pkgs->install('acpi', 'acpid') if !(-x "$::prefix/usr/bin/acpi" && -x "$::prefix/usr/sbin/acpid")
}
@@ -228,10 +228,10 @@ sub setupBootloader__general {
my ($in, $b, $all_hds, $fstab, $security) = @_;
my @method_choices = bootloader::method_choices($fstab);
- my $prev_force_acpi = my $force_acpi = bootloader::get_append($b, 'acpi') !~ /off|ht/;
- my $prev_force_noapic = my $force_noapic = bootloader::get_append($b, 'noapic');
- my $prev_force_nolapic = my $force_nolapic = bootloader::get_append($b, 'nolapic');
- my $memsize = bootloader::get_append($b, 'mem');
+ my $prev_force_acpi = my $force_acpi = bootloader::get_append_with_key($b, 'acpi') !~ /off|ht/;
+ my $prev_force_noapic = my $force_noapic = bootloader::get_append_simple($b, 'noapic');
+ my $prev_force_nolapic = my $force_nolapic = bootloader::get_append_simple($b, 'nolapic');
+ my $memsize = bootloader::get_append_with_key($b, 'mem');
my $prev_clean_tmp = my $clean_tmp = any { $_->{mntpoint} eq '/tmp' } @{$all_hds->{special} ||= []};
my $prev_boot = $b->{boot};
@@ -297,15 +297,15 @@ sub setupBootloader__general {
$in->do_pkgs->ensure_binary_is_installed('grub', "grub", 1) or return 0;
}
- bootloader::set_append($b, "mem", $memsize || 0);
+ bootloader::set_append_with_key($b, mem => $memsize || 0);
if ($prev_force_acpi != $force_acpi) {
- bootloader::set_append($b, acpi => ($force_acpi ? '' : 'ht'));
+ bootloader::set_append_with_key($b, acpi => ($force_acpi ? '' : 'ht'));
}
if ($prev_force_noapic != $force_noapic) {
- ($force_noapic ? \&bootloader::set_append : \&bootloader::remove_append_simple)->($b, 'noapic');
+ ($force_noapic ? \&bootloader::set_append_simple : \&bootloader::remove_append_simple)->($b, 'noapic');
}
if ($prev_force_nolapic != $force_nolapic) {
- ($force_nolapic ? \&bootloader::set_append : \&bootloader::remove_append_simple)->($b, 'nolapic');
+ ($force_nolapic ? \&bootloader::set_append_simple : \&bootloader::remove_append_simple)->($b, 'nolapic');
}
if ($prev_clean_tmp != $clean_tmp) {