Disable volume mounting.

This commit is contained in:
Derek Smith 2023-03-21 13:18:44 -04:00
parent 0ede72d556
commit 75c7b9ffaf
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -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 device override "$LXD_VM_NAME" root size="${ROOT_DISK_SIZE_GB}GB"
if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
# attach any volumes
for CHAIN in testnet mainnet; do
for DATA in blocks chainstate; do
MOUNT_PATH="/$CHAIN-$DATA"
lxc config device add "$LXD_VM_NAME" "$CHAIN-$DATA" disk pool=ss-base source="$CHAIN-$DATA" path="$MOUNT_PATH"
done
done
fi
# if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
# # attach any volumes
# for CHAIN in testnet mainnet; do
# for DATA in blocks chainstate; do
# MOUNT_PATH="/$CHAIN-$DATA"
# lxc config device add "$LXD_VM_NAME" "$CHAIN-$DATA" disk pool=ss-base source="$CHAIN-$DATA" path="$MOUNT_PATH"
# done
# done
# fi
lxc start "$LXD_VM_NAME"
sleep 10