diff options
author | Íñigo Huguet <ihuguet@redhat.com> | 2023-09-06 12:38:07 +0200 |
---|---|---|
committer | Íñigo Huguet <ihuguet@redhat.com> | 2023-09-21 15:53:03 +0200 |
commit | 52c347677f2ac67a37cea90b6bdb2b3d2a07005c (patch) | |
tree | 021dcd8363df2f9df58aa8b38ef66ea008599f00 | |
parent | 0ec71289ed3377ad2a844417dc34e9191a01d3b9 (diff) |
tools: nm-in-vm: fix error if pool folder doesn't exist yetih/nm-in-vm
If libvirt's default pool folder doesn't exist yet (i.e. the user has
never installed a VM there), create it to avoid error and script exit.
-rwxr-xr-x | tools/nm-in-vm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/nm-in-vm b/tools/nm-in-vm index 7b82981089..569c766c91 100755 --- a/tools/nm-in-vm +++ b/tools/nm-in-vm @@ -421,6 +421,7 @@ while (( $# > 0 )); do done # compute some values that depends on user selectable variables +mkdir -p "$BASEDIR_VM_IMAGE" basedir_vm_image=$(readlink -f "$BASEDIR_VM_IMAGE") vm_image_file="$VM.qcow2" datadir="$BASEDIR_NM/tools/nm-guest-data" |