1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
btrfs_setup() {
# shellcheck disable=2039,3043
local INCUS_DIR
INCUS_DIR=$1
echo "==> Setting up btrfs backend in ${INCUS_DIR}"
}
btrfs_configure() {
# shellcheck disable=2039,3043
local INCUS_DIR
INCUS_DIR=$1
incus storage create "incustest-$(basename "${INCUS_DIR}")" btrfs size=1GiB
incus profile device add default root disk path="/" pool="incustest-$(basename "${INCUS_DIR}")"
echo "==> Configuring btrfs backend in ${INCUS_DIR}"
}
btrfs_teardown() {
# shellcheck disable=2039,3043
local INCUS_DIR
INCUS_DIR=$1
echo "==> Tearing down btrfs backend in ${INCUS_DIR}"
}
|