mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
The script allows include to initramfs or include and force to load any modules, listed inside. Initially, the script replaces the trick used for intel drivers
24 lines
540 B
Bash
Executable File
24 lines
540 B
Bash
Executable File
#!/bin/sh
|
|
PREREQ=""
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
case $1 in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
# Begin real processing below this line
|
|
|
|
# include listed modules to initramfs but not load them without the necessity
|
|
manual_add_modules igb ixgbe ixgbevf i40e i40evf
|
|
|
|
# include modules from file (one per line) to initramfs but not load them without the necessity
|
|
# add_modules_from_file /tmp/modlist
|
|
|
|
# include listed modules to initramfs and load them during the boot
|
|
# force_load xxx
|