From b98f41512d42acff49ba03f12ce5c53e320c57ed Mon Sep 17 00:00:00 2001 From: Lukas Greve Date: Sun, 15 Jun 2025 17:14:31 +0200 Subject: [PATCH] restore variables for setting specific path and networking for session and system URI --- scripts/deploy-distro.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/deploy-distro.sh b/scripts/deploy-distro.sh index 5ca612c..f0f8d9f 100755 --- a/scripts/deploy-distro.sh +++ b/scripts/deploy-distro.sh @@ -54,6 +54,15 @@ else exit 1 ;; esac + + # Conditional variable assignment based on URI + if [[ "$uri" == "qemu:///system" ]]; then + disk_path="/var/lib/libvirt/images/" + network_type="default" + elif [[ "$uri" == "qemu:///session" ]]; then + disk_path="$HOME/.local/share/libvirt/images/" + network_type="user" + fi fi # Display the selected option (optional)