From dcccb8d83768947d2917438b1986ff165f8940d4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 26 Jul 2026 20:05:08 -0500 Subject: [PATCH] fix lxc file nas --- defaults.inc | 2 +- inc/deploy-iso-nfs-lxc.sh | 2 +- tests/test-iso-nfs.sh | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 074964a..ecaf175 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="${1:-}" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.7.26-7' +VERS='2026.7.26-8' noupdate=' ' diff --git a/inc/deploy-iso-nfs-lxc.sh b/inc/deploy-iso-nfs-lxc.sh index 00bee4f..189ee3a 100644 --- a/inc/deploy-iso-nfs-lxc.sh +++ b/inc/deploy-iso-nfs-lxc.sh @@ -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}" \ diff --git a/tests/test-iso-nfs.sh b/tests/test-iso-nfs.sh index b62a31f..5c9b099 100755 --- a/tests/test-iso-nfs.sh +++ b/tests/test-iso-nfs.sh @@ -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'