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:
parent
6f4eca9a8c
commit
397bf04bae
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user