summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm11
1 files changed, 1 insertions, 10 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index 53f70b055..6b3e90616 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -99,16 +99,7 @@ sub load_raw {
} elsif (member('usb_storage', @$l)) {
#- usb_storage is only modprobed when we know there is some scsi devices
#- so trying hard to wait for devices to be detected
-
- #- first sleep the minimum time usb-stor-scan takes
- sleep 5; #- 5 == /sys/module/usb_storage/parameters/delay_use
- # then wait for usb-stor-scan to complete
- my $retry = 0;
- while ($retry++ < 10) {
- fuzzy_pidofs('usb-stor-scan') or last;
- sleep 1;
- log::l("waiting for usb_storage devices to appear (retry = $retry)");
- }
+ run_program::run('udevadm', 'settle');
}
}
sub load_with_options {