From 417c00609ed35921f90149dea159970679344ab6 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sun, 13 Mar 2022 00:50:34 +0000 Subject: [PATCH] a couple of tiny bits of English/typo/white-space fixing --- lib/set_CMDLINE.sh | 14 +++++++------- vfio-setup | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/set_CMDLINE.sh b/lib/set_CMDLINE.sh index 0a3ef0b..dd355d1 100755 --- a/lib/set_CMDLINE.sh +++ b/lib/set_CMDLINE.sh @@ -15,7 +15,7 @@ function set_KERNELSTUB () { # Check if systemd-boot already has vfio parameters from before KERNELSTUB_TEST=$(sudo kernelstub -p 2>&1 | grep "Kernel Boot Options" | perl -pe "s/.+Kernel Boot Options:\..+(vfio_pci.ids=.+ ).+/\1/") - + # If there are already vfio_pci parameters in kernelstub if [[ "$KERNELSTUB_TEST" =~ vfio_pci.ids ]] ; then @@ -60,7 +60,7 @@ function set_GRUB () { GRUB_CMDLINE_LINUX=$(cat "/etc/default/grub" | grep -P "^GRUB_CMDLINE_LINUX") perl -pi -e "s/${GRUB_CMDLINE_LINUX}/GRUB_CMDLINE_LINUX=\"${GRUB_CMDLINE} ${CMDLINE}\"/" "${SCRIPTDIR}/$DEFAULT/grub" fi - + echo "The script will now replace your default grub file with a new one. Then attempt to update grub and generate a new grub.cfg. @@ -80,7 +80,7 @@ $SCRIPTDIR/backup/etc/default/grub fi echo "" - read -r -p "Please verify there was no errors generating the grub.cfg file, then press ENTER" + read -r -p "Please verify there were no errors generating the grub.cfg file, then press ENTER" } function show_FINISH () { @@ -107,7 +107,7 @@ function show_FINISH () { " "$CMDLINE" fi - echo "Restart your system and run + echo "Restart your system and run \"$SCRIPTDIR/vfio-verify\" to check if your GPU is properly set up. @@ -154,10 +154,10 @@ https://github.com/HikariKnight/vfio-setup-docs/wiki" } function set_CMDLINE () { - # Make a variable to tell if + # Make a variable to tell if local BOOTLOADER_AUTOCONFIG BOOTLOADER_AUTOCONFIG=0 - + # If kernelstub is detected (program to manage systemd-boot) if which kernelstub > /dev/null 2>&1 ; then @@ -180,7 +180,7 @@ function set_CMDLINE () { function main () { SCRIPTDIR=$(dirname "$(realpath "$0")" | perl -pe "s/\/\.\.\/lib//" | perl -pe "s/\/lib$//") - + set_CMDLINE } diff --git a/vfio-setup b/vfio-setup index 7217262..34e502f 100755 --- a/vfio-setup +++ b/vfio-setup @@ -63,7 +63,7 @@ This is a list of prerequisites you will be needing before starting with VFIO: if both cards share the same device id (ex: both are identified as 1022:145c), then passthrough will not be possible unless you swap out one of the cards. * A \"ghost display\" dummy plug for your second graphic card (or having it hooked to a separate input on your monitor). -* If you are planning to use the inegrated GPU on your CPU, make sure your monitor is connected to it and working/enabled before continuing. +* If you are planning to use the integrated GPU on your CPU, make sure your monitor is connected to it and working/enabled before continuing. * Preferably a motherboard verified to work with IOMMU and with good IOMMU groups. https://reddit.com/r/vfio is a good resource for this info. (If you are unsure, you will find out while using this script) @@ -129,7 +129,7 @@ then # Create the dracut folder mkdir -p "$SCRIPTDIR/$DRACUT" # Create a dracut.conf.d file - touch "$SCRIPTDIR/$DRACUT/10-vfio.conf" + touch "$SCRIPTDIR/$DRACUT/10-vfio.conf" fi # Run ls-iommu so we can verify that IOMMU properly working