diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-02-13 16:13:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-02-13 16:13:03 +0000 |
commit | f9d539b8d50b5608e6e02e1ea7b613bb487d1043 (patch) | |
tree | d814544729758a23bec1c3528ea8de19a30e8a41 /perl-install/install2.pm | |
parent | 762cb4be621d9db7c51dee6bace5553decd32282 (diff) | |
download | drakx-backup-do-not-use-f9d539b8d50b5608e6e02e1ea7b613bb487d1043.tar drakx-backup-do-not-use-f9d539b8d50b5608e6e02e1ea7b613bb487d1043.tar.gz drakx-backup-do-not-use-f9d539b8d50b5608e6e02e1ea7b613bb487d1043.tar.bz2 drakx-backup-do-not-use-f9d539b8d50b5608e6e02e1ea7b613bb487d1043.tar.xz drakx-backup-do-not-use-f9d539b8d50b5608e6e02e1ea7b613bb487d1043.zip |
- have usb-storage as a scsi_hostadapter by default
- remove it if unneeded for normal boot (cf comment in the code)
Diffstat (limited to 'perl-install/install2.pm')
-rw-r--r-- | perl-install/install2.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index 7783c7238..bfd6b5229 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -191,6 +191,16 @@ sub formatPartitions { any::rotate_logs($o->{prefix}); + if (find { $_->{usb_media_type} && find { $_->{mntpoint} } partition_table::get_normal_parts($_) } @{$o->{all_hds}{hds}}) { + log::l("we use a usb-storage based drive, so keep it as a normal scsi_hostadapter"); + } else { + log::l("we don't need usb-storage for booting system, rely on hotplug"); + #- when usb-storage is in scsi_hostadapter, + #- hotplug + scsimon do not load sd_mod/sr_mod when needed + #- (eg: when plugging a usb key) + modules::remove_probeall('scsi_hostadapter', 'usb-storage'); + } + require raid; raid::prepare_prefixed($o->{all_hds}{raids}, $o->{prefix}); } |