kvm

qemu/kvm installation script
git clone https://git.awy.one/kvm.git
Log | Files | Refs | README | LICENSE

commit 7e2deb39eb9b94f8c5ae994c3a6cbf50fb180d7c
parent de5bebbbc473f16253cfd8efbe765b2786e8ef0c
Author: awy <awy@awy.one>
Date:   Sun,  9 Mar 2025 19:11:13 +0300

shcheck

Diffstat:
Mgpu_pass.sh | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gpu_pass.sh b/gpu_pass.sh @@ -12,8 +12,8 @@ PERMUSER="$(id -nu "1000")" id "$PERMUSER" > /dev/null 2>&1 || { echo "User $PERMUSER does not exist. Exiting."; exit 1; } -doas -u $PERMUSER mkdir -p /home/$PERMUSER/.local/share/vgabios -doas -u $PERMUSER cp $WORKDIRECTORY/Hooks/patch.rom /home/$PERMUSER/.local/share/vgabios +doas -u "$PERMUSER" mkdir -p /home/"$PERMUSER"/.local/share/vgabios +doas -u "$PERMUSER" cp "$WORKDIRECTORY"/Hooks/patch.rom /home/"$PERMUSER"/.local/share/vgabios pacman -Sy --noconfirm pacman -S qemu-desktop libvirt libvirt-dinit edk2-ovmf virt-manager dnsmasq wget --noconfirm @@ -24,17 +24,17 @@ mkdir /etc/libvirt/hooks #wget 'https://raw.githubusercontent.com/PassthroughPOST/VFIO-Tools/master/libvirt_hooks/qemu' \ # -O /etc/libvirt/hooks/qemu -cp $WORKDIRECTORY/Hooks/qemu /etc/libvirt/hooks/ +cp "$WORKDIRECTORY"/Hooks/qemu /etc/libvirt/hooks/ chmod +x /etc/libvirt/hooks/qemu mkdir -p /etc/libvirt/hooks/qemu.d/win10-hidden-pt/prepare/begin mkdir -p /etc/libvirt/hooks/qemu.d/win10-hidden-pt/release/end -cp $WORKDIRECTORY/Hooks/start.sh /etc/libvirt/hooks/qemu.d/win10-hidden-pt/prepare/begin/ +cp "$WORKDIRECTORY"/Hooks/start.sh /etc/libvirt/hooks/qemu.d/win10-hidden-pt/prepare/begin/ #sudo cp Hooks/isolstart.sh /etc/libvirt/hooks/qemu.d/win10/prepare/begin/ -cp $WORKDIRECTORY/Hooks/revert.sh /etc/libvirt/hooks/qemu.d/win10-hidden-pt/release/end/ +cp "$WORKDIRECTORY"/Hooks/revert.sh /etc/libvirt/hooks/qemu.d/win10-hidden-pt/release/end/ #sudo cp Hooks/isocpurevert.sh /etc/libvirt/hooks/qemu.d/win10/release/end/ cp Hooks/kvm.conf /etc/libvirt/hooks/ -usermod -aG libvirt,kvm,input,audio,video $PERMUSER +usermod -aG libvirt,kvm,input,audio,video "$PERMUSER"