fix lxc file nas
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
action="${1:-}"
|
||||
FOLDER='/opt/idssys/ta-proxmenu'
|
||||
VERS='2026.7.26-7'
|
||||
VERS='2026.7.26-8'
|
||||
|
||||
noupdate=' '
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ TAPM_DEPLOY_ISO_NFS_LXC() {
|
||||
--unprivileged 0 \
|
||||
--features nesting=1 \
|
||||
--cores 2 \
|
||||
--cpunits 100 \
|
||||
--cpuunits 100 \
|
||||
--memory 2048 \
|
||||
--swap 512 \
|
||||
--rootfs "${root_storage}:${root_size}" \
|
||||
|
||||
@@ -5,6 +5,11 @@ TEST_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
source "${TEST_ROOT}/tests/testlib.sh"
|
||||
source "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
|
||||
|
||||
assert_success "LXC creation uses the compatible cpuunits option" \
|
||||
grep -q -- '--cpuunits 100' "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
|
||||
assert_failure "misspelled cpunits option is absent" \
|
||||
grep -q -- '--cpunits' "${TEST_ROOT}/inc/deploy-iso-nfs-lxc.sh"
|
||||
|
||||
assert_success "valid storage ID" TAPM_ISO_NFS_VALID_ID PVE-Shared-Storage
|
||||
assert_failure "storage ID cannot start with a number" TAPM_ISO_NFS_VALID_ID 1-storage
|
||||
assert_failure "storage ID rejects spaces" TAPM_ISO_NFS_VALID_ID 'shared storage'
|
||||
|
||||
Reference in New Issue
Block a user