Disable volume mounting.
This commit is contained in:
parent
0ede72d556
commit
75c7b9ffaf
18
deploy_vm.sh
18
deploy_vm.sh
@ -41,15 +41,15 @@ if ! lxc list --format csv | grep -q "$LXD_VM_NAME"; then
|
|||||||
lxc config set "$LXD_VM_NAME" "volatile.enp5s0.hwaddr=$MAC_ADDRESS_TO_PROVISION"
|
lxc config set "$LXD_VM_NAME" "volatile.enp5s0.hwaddr=$MAC_ADDRESS_TO_PROVISION"
|
||||||
lxc config device override "$LXD_VM_NAME" root size="${ROOT_DISK_SIZE_GB}GB"
|
lxc config device override "$LXD_VM_NAME" root size="${ROOT_DISK_SIZE_GB}GB"
|
||||||
|
|
||||||
if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
|
# if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
|
||||||
# attach any volumes
|
# # attach any volumes
|
||||||
for CHAIN in testnet mainnet; do
|
# for CHAIN in testnet mainnet; do
|
||||||
for DATA in blocks chainstate; do
|
# for DATA in blocks chainstate; do
|
||||||
MOUNT_PATH="/$CHAIN-$DATA"
|
# MOUNT_PATH="/$CHAIN-$DATA"
|
||||||
lxc config device add "$LXD_VM_NAME" "$CHAIN-$DATA" disk pool=ss-base source="$CHAIN-$DATA" path="$MOUNT_PATH"
|
# lxc config device add "$LXD_VM_NAME" "$CHAIN-$DATA" disk pool=ss-base source="$CHAIN-$DATA" path="$MOUNT_PATH"
|
||||||
done
|
# done
|
||||||
done
|
# done
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
lxc start "$LXD_VM_NAME"
|
lxc start "$LXD_VM_NAME"
|
||||||
sleep 10
|
sleep 10
|
||||||
|
Loading…
Reference in New Issue
Block a user