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.
27 lines
800 B
27 lines
800 B
#!/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" |
|
} |
|
instmods pcmcia sd_mod $(filter_kernel_modules block_module_test) "=drivers/pcmcia" =ide |
|
# if not on hostonly mode, install all known filesystems. |
|
if [[ $hostonly = '' ]]; then |
|
instmods '=fs' |
|
else |
|
instmods $(get_fs_type "/dev/block/$(find_root_block_device)") |
|
fi |
|
# hardcoded list of exceptions |
|
rm -fr ${initdir}/lib/modules/*/kernel/fs/ocfs2 |
|
else |
|
instmods $drivers |
|
fi |
|
|
|
[[ $add_drivers ]] && instmods $add_drivers |
|
|
|
# force install of scsi_wait_scan |
|
old_hostonly=$hostonly |
|
hostonly='' |
|
instmods scsi_wait_scan |
|
hostonly=$old_hostonly |