From 81f392fb43f905d2b40b8a9ec76f4d3590071659 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sat, 12 Mar 2022 17:49:08 +0100 Subject: [PATCH] look for an actual dracut.conf and not the dracut.conf.d folder --- lib/apply_CHANGES.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/apply_CHANGES.sh b/lib/apply_CHANGES.sh index 9372ed7..7b47700 100755 --- a/lib/apply_CHANGES.sh +++ b/lib/apply_CHANGES.sh @@ -13,7 +13,7 @@ function make_BACKUP () { cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-tools/modules" cp -v "/etc/modules" "$BACKUPDIR/etc/modules" - elif [ -d "/etc/dracut.conf.d" ]; + elif [ -d "/etc/dracut.conf" ]; then mkdir -p "$BACKUPDIR/etc/dracut.conf.d" if [ -f "/etc/dracut.conf.d/10-vfio.conf" ]; @@ -68,7 +68,7 @@ function copy_FILES () { Rebuilding initramfs" sudo update-initramfs -u - elif [ -d "/etc/dracut.conf.d" ]; + elif [ -d "/etc/dracut.conf" ]; then cp -v "$SCRIPTDIR/$DRACUT/10-vfio.conf" "/etc/dracut.conf.d/10-vfio.conf" echo "