Add USB modules to boot-cd hooks

This should allow the disk to find itself
on external CD-ROM drives.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2008-04-02 20:29:01 -05:00
parent 6f4eca9a8c
commit 397bf04bae
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,11 @@
run_hook () run_hook ()
{ {
# external drives may need to settle
msg ":: Waiting for usb devices to settle..."
/sbin/udevtrigger --subsystem-match=usb
/sbin/udevsettle
sleep 5
msg ":: Scanning for boot cdrom device..." msg ":: Scanning for boot cdrom device..."
/bin/mkdir -p /bootmnt /bin/mkdir -p /bootmnt

View File

@ -1,6 +1,14 @@
install () install ()
{ {
MODULES="cdrom ide-cd ide-core ide-generic unionfs squashfs isofs $(all_modules '/kernel/fs' | grep -v "nls") " MODULES="cdrom ide-cd ide-core ide-generic unionfs squashfs isofs $(all_modules '/kernel/fs' | grep -v "nls") "
# need usb modules for external drives
MODULES="${MODULES} $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl1811-hcd" -e "isp116x-hcd")"
MODULES=$(echo ${MODULES}) #trim whitespace
if [ "x${MODULES}" != "x" ]; then
MODULES="${MODULES} usb_storage sd_mod sr_mod"
fi
BINARIES="" BINARIES=""
FILES="" FILES=""
SCRIPT="boot-cd" SCRIPT="boot-cd"