diff --git a/lib/apply_CHANGES.sh b/lib/apply_CHANGES.sh index 65cb039..35b2ac4 100755 --- a/lib/apply_CHANGES.sh +++ b/lib/apply_CHANGES.sh @@ -13,7 +13,7 @@ function make_BACKUP () { # Backup system files sudo cp -v "/etc/modules" "$BACKUPDIR/etc/modules" - sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-rools/modules" + sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-tools/modules" sudp cp -v "/etc/default/grub" "$BACKUPDIR/etc/default/grub" # If a vfio.conf file exists, backup that too diff --git a/lib/get_GPU_GROUP.sh b/lib/get_GPU_GROUP.sh index a3bfe6a..917a6c5 100755 --- a/lib/get_GPU_GROUP.sh +++ b/lib/get_GPU_GROUP.sh @@ -5,8 +5,7 @@ function get_GROUP () { # Get the config paths source "$SCRIPTDIR/lib/paths.sh" - printf " -For this card to be passthrough-able, it must contain only: + printf "For this card to be passthrough-able, it must contain only: * The GPU/Graphic card * The GPU Audio Controller diff --git a/lib/set_CMDLINE.sh b/lib/set_CMDLINE.sh index 094ea53..3ac5a9f 100755 --- a/lib/set_CMDLINE.sh +++ b/lib/set_CMDLINE.sh @@ -2,7 +2,11 @@ # Function to configure systemd-boot using kernelstub function set_KERNELSTUB () { - clear + # Separator + printf " +############################################################ +" + # Tell what we are going to do echo "Adding vfio kernel arguments to systemd-boot using kernelstub" @@ -28,7 +32,11 @@ function set_KERNELSTUB () { # Function to configure grub function set_GRUB () { - clear + # Separator + printf " +############################################################ +" + # Get the config paths source "$SCRIPTDIR/lib/paths.sh" @@ -69,7 +77,11 @@ $SCRIPTDIR/backup/etc/default/grub } function show_FINISH () { - clear + # Separator + printf " +############################################################ +" + # Get the config paths source "$SCRIPTDIR/lib/paths.sh" diff --git a/lib/set_MODULES.sh b/lib/set_MODULES.sh index 279eb0b..54d4683 100755 --- a/lib/set_MODULES.sh +++ b/lib/set_MODULES.sh @@ -55,7 +55,8 @@ function set_MODULES () { CMDLINE=$(cat "$SCRIPTDIR/config/kernel_args") # Ask if we shall disable video output on this card - echo "Disabling video output in Linux for the card you want to use in a VM + echo " +Disabling video output in Linux for the card you want to use in a VM will make it easier to successfully do the passthrough without issues." read -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA case "${DISABLE_VGA}" in diff --git a/vfio-setup b/vfio-setup index e1a9f78..537950c 100755 --- a/vfio-setup +++ b/vfio-setup @@ -42,7 +42,11 @@ A full documentation for debian/ubuntu systems can be found here: https://github Press ENTER to continue once you have made a backup of your system. " read -r -clear + +# Separator +printf " +############################################################ +" echo "This script assumes a few things: * You have already enabled IOMMU, VT-d and/or AMD-v inside your UEFI/BIOS advanced settings. @@ -74,7 +78,11 @@ Press ENTER to start creating your config from scratch. NOTE: continuing will delete the contents of \"$SCRIPTDIR/config\" " read -r -clear + +# Separator +printf " +############################################################ +" if [ -d "$SCRIPTDIR/config" ]; then @@ -138,7 +146,7 @@ echo "" read -r -p "Is there more than 1 group in the output above? [y/N]: " YESNO case "${YESNO}" in [Yy]*) - clear + echo "" ;; [Nn]*) echo "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\"