You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
#!/bin/bash |
|
if [[ -z $drivers ]]; then |
|
block_module_test() { |
|
local blockfuncs='ata_scsi_ioctl|scsi_add_host|blk_init_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device' |
|
|
|
nm -uPA "$1" | egrep -q "$blockfuncs" |
|
} |
|
hostonly='' instmods pcmcia sd_mod scsi_dh scsi_dh_rdac scsi_dh_emc |
|
hostonly='' instmods firewire-ohci |
|
|
|
# install keyboard support |
|
hostonly='' instmods atkbd i8042 usbhid hid-apple ehci-hcd ohci-hcd uhci-hcd |
|
|
|
instmods "=drivers/pcmcia" =ide "=drivers/usb/storage" |
|
instmods $(filter_kernel_modules block_module_test) |
|
# if not on hostonly mode, install all known filesystems if the required list is not set via the filesystems variable |
|
if ! [[ $hostonly ]]; then |
|
if [[ -z $filesystems ]]; then |
|
instmods '=fs' |
|
else |
|
instmods $filesystems |
|
fi |
|
else |
|
hostonly='' instmods $(get_fs_type "/dev/block/$(find_root_block_device)") |
|
fi |
|
# hardcoded list of exceptions |
|
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2 |
|
else |
|
hostonly='' instmods $drivers $filesystems |
|
fi |
|
|
|
[[ $add_drivers ]] && hostonly='' instmods $add_drivers |
|
|
|
# force install of scsi_wait_scan |
|
hostonly='' instmods scsi_wait_scan |
|
|
|
|