From eb62ae240150813e1c6138e13ea0fd2f0e8326a9 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Thu, 10 Mar 2022 16:49:33 +0100 Subject: [PATCH] Remove old obsolete info, add new info --- lib/set_CMDLINE.sh | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/lib/set_CMDLINE.sh b/lib/set_CMDLINE.sh index 33b95d0..42a3401 100755 --- a/lib/set_CMDLINE.sh +++ b/lib/set_CMDLINE.sh @@ -8,22 +8,18 @@ function set_CMDLINE () { local CMDLINE CMDLINE=$(cat "${SCRIPTDIR}/config/kernel_args") - echo "Configuration is now complete, however no changes have been done to your system. -The files needed have just been written to $SCRIPTDIR/config/etc - -At this point if you know what you are doing, you can use these files to enable VFIO on your system -and achieve GPU Passthrough with your VMs by moving them to the correct location and then updating your -initramfs and bootloader. + echo "Configuration is now complete! For VFIO to work properly you need to make sure these kernel parameters are in your bootloader entry: #-----------------------------------------------# $CMDLINE #-----------------------------------------------# -Make sure that the files inside \"$SCRIPTDIR/config/etc\" are copied to your /etc -AND PLEASE MAKE A BACKUP FIRST! +A backup the files we replaced on your system can be found inside +$SCRIPTDIR/backup/ +In order to restore these files just copy them back to your system and run +\"sudo update-initramfs -u\" -Then run \"sudo update-initramfs -u\", that way you can boot an older kernel without vfio if needed, before commiting fully. You can remove the the vfio_pci kernel arguments from the linux line in your bootloader to disable/unbind the graphic card from the vfio driver on boot. Finally reboot your system and run \"$SCRIPTDIR/vfio-verify\" to check if your GPU is properly set up. @@ -31,13 +27,6 @@ NOTE: Some AMD GPUs will require the vendor-reset kernel module from https://git The files inside \"$SCRIPTDIR/$QUICKEMU\" are currently unused files, however they provide the required information that the QuickEMU project can hook into and use to add support for VFIO enabled VMs. - -###################################################################### -#### In the future, when I have enough confirmation that this script works for other people. -#### This page will get replaced with a prompt asking if you want to apply the changes and make backups -#### of your current system config. -###################################################################### - " }