load bunch of modules manually

This commit is contained in:
Tomas M
2017-05-18 03:54:25 -05:00
parent d9617ee2cd
commit 35d6b2364f
3 changed files with 42 additions and 6 deletions
+2
View File
@@ -21,9 +21,11 @@ init_proc_sysfs
debug_start
debug_shell
# load some modules manually first, then modprobe everything we have
init_devs
init_aufs
init_zram
modprobe_everything
# find data dir with filesystem bundles
DATA="$(find_data 60 "$DATAMNT")"
+19
View File
@@ -67,13 +67,32 @@ mknod $INITRAMFS/dev/tty4 c 4 4
#copy_including_deps /usr/bin/lsof
# TODO: add all common filesystems which are NOT compiled in kernel already
copy_including_deps /$LMK/kernel/fs/aufs
copy_including_deps /$LMK/kernel/fs/squashfs
copy_including_deps /$LMK/kernel/drivers/staging/zsmalloc # needed by zram
copy_including_deps /$LMK/kernel/drivers/staging/zram
copy_including_deps /$LMK/kernel/drivers/block/loop.*
copy_including_deps /$LMK/kernel/fs/fuse
copy_including_deps /$LMK/kernel/fs/isofs
copy_including_deps /$LMK/modules.*
# usb drivers
copy_including_deps /$LMK/kernel/drivers/usb/host
copy_including_deps /$LMK/kernel/drivers/usb/common
copy_including_deps /$LMK/kernel/drivers/usb/core
copy_including_deps /$LMK/kernel/drivers/hid/usbhid
copy_including_deps /$LMK/kernel/drivers/hid/hid.*
copy_including_deps /$LMK/kernel/drivers/hid/uhid.*
copy_including_deps /$LMK/kernel/drivers/hid/hid-generic.*
# disk and cdrom drivers
copy_including_deps /$LMK/kernel/drivers/cdrom
copy_including_deps /$LMK/kernel/drivers/scsi/sr_mod.*
copy_including_deps /$LMK/kernel/drivers/scsi/sd_mod.*
copy_including_deps /$LMK/kernel/drivers/scsi/scsi_mod.*
copy_including_deps /$LMK/kernel/drivers/scsi/sg.*
copy_including_deps /$LMK/kernel/drivers/ata
find $INITRAMFS -name "*.ko.gz" -exec gunzip {} \;
# trim modules.order file. Perhaps we could remove it entirely