mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 07:00:05 +01:00
tools: nm-in-vm: fix error if pool folder doesn't exist yet
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.
This commit is contained in:
parent
0ec71289ed
commit
52c347677f
1 changed files with 1 additions and 0 deletions
|
|
@ -421,6 +421,7 @@ while (( $# > 0 )); do
|
||||||
done
|
done
|
||||||
|
|
||||||
# compute some values that depends on user selectable variables
|
# compute some values that depends on user selectable variables
|
||||||
|
mkdir -p "$BASEDIR_VM_IMAGE"
|
||||||
basedir_vm_image=$(readlink -f "$BASEDIR_VM_IMAGE")
|
basedir_vm_image=$(readlink -f "$BASEDIR_VM_IMAGE")
|
||||||
vm_image_file="$VM.qcow2"
|
vm_image_file="$VM.qcow2"
|
||||||
datadir="$BASEDIR_NM/tools/nm-guest-data"
|
datadir="$BASEDIR_NM/tools/nm-guest-data"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue