base/init: add scsi_wait_scan to wait for host adapter scans

master
Harald Hoyer 2009-09-09 11:02:41 +02:00
parent f5c4374d2c
commit 71094bee63
3 changed files with 7 additions and 2 deletions

View File

@ -18,4 +18,4 @@ else
instmods $drivers instmods $drivers
fi fi



instmods scsi_wait_scan

View File

@ -138,6 +138,11 @@ while :; do
[ -n "$queuetriggered" ] && continue [ -n "$queuetriggered" ] && continue


if $UDEV_QUEUE_EMPTY >/dev/null 2>&1; then if $UDEV_QUEUE_EMPTY >/dev/null 2>&1; then

modprobe scsi_wait_scan && rmmod scsi_wait_scan

$UDEV_QUEUE_EMPTY >/dev/null 2>&1 || continue

unset queuetriggered unset queuetriggered
for job in /initqueue-settled/*.sh; do for job in /initqueue-settled/*.sh; do
[ -e "$job" ] || break [ -e "$job" ] || break

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
dracut_install mount mknod mkdir modprobe pidof sleep chroot \ dracut_install mount mknod mkdir modprobe pidof sleep chroot \
sed ls flock cp mv dmesg rm ln sed ls flock cp mv dmesg rm ln rmmod
if [ ! -e "${initdir}/bin/sh" ]; then if [ ! -e "${initdir}/bin/sh" ]; then
dracut_install bash dracut_install bash
(ln -s bash "${initdir}/bin/sh" || :) (ln -s bash "${initdir}/bin/sh" || :)