summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/bootloader-config
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-28 13:16:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-28 13:16:39 +0000
commit78116fed22af96fd2ec3e259d7c936e4c5757a77 (patch)
tree39dc834d7e53092d2d1d56074acf2e5ba2526b27 /perl-install/standalone/bootloader-config
parent11c9c7a88a6375b27eb7f4e2ba64b094a75e143e (diff)
downloaddrakx-backup-do-not-use-78116fed22af96fd2ec3e259d7c936e4c5757a77.tar
drakx-backup-do-not-use-78116fed22af96fd2ec3e259d7c936e4c5757a77.tar.gz
drakx-backup-do-not-use-78116fed22af96fd2ec3e259d7c936e4c5757a77.tar.bz2
drakx-backup-do-not-use-78116fed22af96fd2ec3e259d7c936e4c5757a77.tar.xz
drakx-backup-do-not-use-78116fed22af96fd2ec3e259d7c936e4c5757a77.zip
- use modularized ide drivers and configure ide-controller in modprobe.conf
- bootloader-config: o configure ide-controller in modprobe.conf for upgrading to kernels with modularized ide drivers
Diffstat (limited to 'perl-install/standalone/bootloader-config')
-rwxr-xr-xperl-install/standalone/bootloader-config13
1 files changed, 13 insertions, 0 deletions
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config
index f9b796fc9..4f53ba420 100755
--- a/perl-install/standalone/bootloader-config
+++ b/perl-install/standalone/bootloader-config
@@ -134,6 +134,8 @@ sub remove_kernel() {
#-###############################################################################
sub add_kernel() {
+ configure_ide_controller();
+ exit;
bootloader::create_link_source();
my $kernel_str = bootloader::vmlinuz2kernel_str($image) or die "bad kernel name $image\n";
@@ -164,6 +166,17 @@ sub add_kernel() {
modify_bootloader();
}
+sub configure_ide_controller {
+ my $modules_conf = modules::any_conf->read;
+ if ($modules_conf->get_alias('ide-controller') ||
+ $modules_conf->get_probeall('ide-controller')) {
+ #- already configured
+ } elsif (my @l = detect_devices::probe_category('disk/ide')) {
+ $modules_conf->add_probeall('ide-controller', $_->{driver}) foreach @l;
+ $modules_conf->write;
+ }
+}
+
sub modify_bootloader() {
!$no_entry or return;