From 684ae3e76252824236016a6e101b71db191db5fa Mon Sep 17 00:00:00 2001 From: Joerg Heinemann Date: Fri, 13 Feb 2026 14:41:11 +0100 Subject: [PATCH] Refactor pve_check function and update disk listing See: https://github.com/community-scripts/ProxmoxVED/issues/1362#issuecomment-3897164396 --- vm/truenas-vm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm/truenas-vm.sh b/vm/truenas-vm.sh index 295dc6954..ee27c09a6 100644 --- a/vm/truenas-vm.sh +++ b/vm/truenas-vm.sh @@ -182,7 +182,7 @@ function check_root() { fi } -pve_check() { +function pve_check() { local PVE_VER PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')" @@ -533,7 +533,7 @@ if [ "$IMPORT_DISKS" == "yes" ]; then while read -r LSOUTPUT; do DISKARRAY+=("$LSOUTPUT" "" "OFF") - done < <(ls /dev/disk/by-id | grep -E '^ata-|^nvme-' | grep -v 'part') + done < <(ls /dev/disk/by-id | grep -E '^ata-|^nvme-|^usb-' | grep -v 'part') SELECTIONS=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SELECT DISKS TO IMPORT" --checklist "\nSelect disk IDs to import. (Use Spacebar to select)\n" --cancel-button "Exit Script" 20 58 10 "${DISKARRAY[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit