control-vm.sh: Move the BASE_DIR to pwd
This commit is contained in:
parent
104a41d771
commit
98d03dda6a
@ -36,10 +36,10 @@
|
|||||||
# or ./control-vm.sh Gentoo-guest shudown
|
# or ./control-vm.sh Gentoo-guest shudown
|
||||||
#
|
#
|
||||||
# You should now have a setup like:
|
# You should now have a setup like:
|
||||||
# ${HOME}/vm/
|
# $(pwd)/
|
||||||
# ${HOME}/vm/control-vm.sh
|
# $(pwd)/control-vm.sh
|
||||||
# ${HOME}/vm/Gentoo-guest-1/virtual-machine.img
|
# $(pwd)/Gentoo-guest-1/virtual-machine.img
|
||||||
# ${HOME}/vm/Gentoo-guest-1/virtual-machine.bash
|
# $(pwd)/Gentoo-guest-1/virtual-machine.bash
|
||||||
|
|
||||||
# === Configuration of the guest ===
|
# === Configuration of the guest ===
|
||||||
# Create a file with the guest's parameters and name it same as the "GUEST_NAME"
|
# Create a file with the guest's parameters and name it same as the "GUEST_NAME"
|
||||||
@ -84,8 +84,8 @@ SSH_PORT="${SSH_PORT:-}"
|
|||||||
UI="${UI:-}"
|
UI="${UI:-}"
|
||||||
# Define paths.
|
# Define paths.
|
||||||
# Note: Sort in alphabetical order as long as inheritance is respected.
|
# Note: Sort in alphabetical order as long as inheritance is respected.
|
||||||
BASE_PATH="${BASE_PATH:-${HOME}/vm/${GUEST_NAME}}"
|
BASE_PATH="$(pwd)/${GUEST_NAME}"
|
||||||
GUEST_CONFIG_FILE="${HOME}/vm/${GUEST_NAME}/virtual-machine.bash"
|
GUEST_CONFIG_FILE="${GUEST_CONFIG_FILE:-${BASE_PATH}/virtual-machine.bash}"
|
||||||
IMAGE_PATH="${IMAGE_PATH:-${BASE_PATH}/virtual-machine.img}"
|
IMAGE_PATH="${IMAGE_PATH:-${BASE_PATH}/virtual-machine.img}"
|
||||||
ISO_PATH="${ISO_PATH:-${BASE_PATH}/../installer/${GUEST_NAME}.iso}"
|
ISO_PATH="${ISO_PATH:-${BASE_PATH}/../installer/${GUEST_NAME}.iso}"
|
||||||
MONITOR_SOCKET="${MONITOR_SOCKET:-${BASE_PATH}/monitor.socket}"
|
MONITOR_SOCKET="${MONITOR_SOCKET:-${BASE_PATH}/monitor.socket}"
|
||||||
|
Loading…
Reference in New Issue
Block a user