enable test support for mkinitcpio and dracut
This commit is contained in:
parent
f3391a622e
commit
f196052c27
6 changed files with 44 additions and 13 deletions
|
@ -49,7 +49,24 @@ USB_CTL_ID=()
|
|||
"$SCRIPTDIR/lib/get_GPU_ROM.sh" "$ROM_PCI_ID"
|
||||
|
||||
# Start setting up modules
|
||||
exec "$SCRIPTDIR/lib/set_INITRAMFSTOOLS.sh" "$GPU_DEVID"
|
||||
if [ -d "/etc/initramfs-tools" ];
|
||||
then
|
||||
exec "$SCRIPTDIR/lib/set_INITRAMFSTOOLS.sh" "$GPU_DEVID"
|
||||
|
||||
elif [ -d "/etc/dracut.conf" ];
|
||||
then
|
||||
exec "$SCRIPTDIR/lib/set_DRACUT.sh" "$GPU_DEVID"
|
||||
|
||||
elif [ -f "/etc/mkinitcpio.conf" ];
|
||||
then
|
||||
exec "$SCRIPTDIR/lib/set_MKINITCPIO.sh" "$GPU_DEVID"
|
||||
else
|
||||
# Bind GPU to VFIO
|
||||
"$SCRIPTDIR/lib/set_VFIO.sh" "$1"
|
||||
|
||||
# Configure modprobe
|
||||
"$SCRIPTDIR/lib/set_MODPROBE.sh" "$1"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
exec "$SCRIPTDIR/lib/get_GPU.sh"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue