enable test support for mkinitcpio and dracut

This commit is contained in:
HikariKnight 2022-03-12 20:29:58 +01:00
parent f3391a622e
commit f196052c27
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
6 changed files with 44 additions and 13 deletions

View file

@ -17,6 +17,11 @@ function set_MKINITCPIO () {
perl -pi -e "s/MODULES=\(${CURRENTMODULES}\)/MODULES=\(vfio vfio_iommu_type1 vfio_pci vfio_virqfd ${MODULES}\)/" "$SCRIPTDIR/$MKINITCPIO"
fi
# Bind GPU to VFIO
"$SCRIPTDIR/lib/set_VFIO.sh" "$1"
# Configure modprobe
exec "$SCRIPTDIR/lib/set_MODPROBE.sh" "$1"
}
function main () {