index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | Simo Leone <simo@archlinux.org> | 2008-04-02 20:29:01 -0500 |
---|---|---|
committer | Simo Leone <simo@archlinux.org> | 2008-04-02 20:29:01 -0500 |
commit | 81e9aa8bc6f3961b8e313419f73d286cadaf9c7d (patch) | |
tree | fa21e47b29795afa9abce26a03ac33a6cda70610 | |
parent | bc839ac0e577d00aca5c18d18e17b60fcf43ce91 (diff) |
-rw-r--r-- | hooks/boot-cd | 6 | ||||
-rw-r--r-- | install/boot-cd | 8 |
diff --git a/hooks/boot-cd b/hooks/boot-cd index 1773023..1670c6b 100644 --- a/hooks/boot-cd +++ b/hooks/boot-cd @@ -1,5 +1,11 @@ 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..." /bin/mkdir -p /bootmnt diff --git a/install/boot-cd b/install/boot-cd index 6a48716..d79bb18 100644 --- a/install/boot-cd +++ b/install/boot-cd @@ -1,6 +1,14 @@ install () { 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="" FILES="" SCRIPT="boot-cd" |