summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/bootloader-config
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-05 04:27:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-05 04:27:35 +0000
commit44e50eaf2d9a98e51f5fbe71c57e54be2f97b893 (patch)
tree7c7d8ac8c30b72a08651fc2b0bad27117cd8cc83 /perl-install/standalone/bootloader-config
parent38f3ac465aa23935477a860ba61efb330623c936 (diff)
downloaddrakx-44e50eaf2d9a98e51f5fbe71c57e54be2f97b893.tar
drakx-44e50eaf2d9a98e51f5fbe71c57e54be2f97b893.tar.gz
drakx-44e50eaf2d9a98e51f5fbe71c57e54be2f97b893.tar.bz2
drakx-44e50eaf2d9a98e51f5fbe71c57e54be2f97b893.tar.xz
drakx-44e50eaf2d9a98e51f5fbe71c57e54be2f97b893.zip
adapt to bootloader functions now using all_hds instead of hds
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-xperl-install/standalone/bootloader-config9
1 files changed, 4 insertions, 5 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config
index 55be9fb51..b6bec9dd6 100755
--- a/perl-install/standalone/bootloader-config
+++ b/perl-install/standalone/bootloader-config
@@ -55,7 +55,6 @@ if ($image) {
my $all_hds = fsedit::get_hds();
fs::get_info_from_fstab($all_hds, '');
-my $hds = $all_hds->{hds};
my $bootloader = bootloader::read([ fs::get::fstab($all_hds) ]) or die "Cannot find a boot loader installed\n";
@@ -120,8 +119,8 @@ sub add_kernel() {
sub modify_bootloader() {
!$no_entry or return;
- bootloader::action($bootloader, 'write', $hds);
- bootloader::action($bootloader, 'when_config_changed', $hds) if !$no_launch;
+ bootloader::action($bootloader, 'write', $all_hds);
+ bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}
#-###############################################################################
@@ -156,14 +155,14 @@ sub update_splash() {
foreach (@{$bootloader->{entries}}) {
bootloader::add_boot_splash($_->{initrd}, $_->{vga}) if $_->{initrd};
}
- bootloader::action($bootloader, 'when_config_changed', $hds) if !$no_launch;
+ bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}
sub remove_splash() {
foreach (@{$bootloader->{entries}}) {
bootloader::remove_boot_splash($_->{initrd}) if $_->{initrd};
}
- bootloader::action($bootloader, 'when_config_changed', $hds) if !$no_launch;
+ bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
}
sub detectloader() {