fix unable to create 10-vfio.conf for dracut

This commit is contained in:
HikariKnight 2022-03-12 15:48:58 +01:00
parent d0d972cf9f
commit eb3d9986ac
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
3 changed files with 5 additions and 3 deletions

View file

@ -129,8 +129,10 @@ fi
if [ -f "/etc/dracut.conf" ];
then
# Create the dracut folder
mkdir -p "$SCRIPTDIR/$DRACUT"
# Create a dracut.conf.d file
touch "$SCRIPTDIR/$DRACUT"
touch "$SCRIPTDIR/$DRACUT/10-vfio.conf"
fi
# Run ls-iommu so we can verify that IOMMU properly working