imported disks now have a serial ID. TrueNAS needs it.

This commit is contained in:
juronja 2026-01-30 09:18:42 +00:00
parent edac4a2293
commit 773e748d95

View File

@ -539,7 +539,10 @@ if [ "$IMPORT_DISKS" == "yes" ]; then
for SELECTION in $SELECTIONS; do for SELECTION in $SELECTIONS; do
((++SCSI_NR)) ((++SCSI_NR))
qm set $VMID --scsi$SCSI_NR /dev/disk/by-id/$SELECTION
ID_SERIAL=$(echo "$SELECTION" | rev | cut -d'_' -f1 | rev)
qm set $VMID --scsi$SCSI_NR /dev/disk/by-id/$SELECTION,serial=$ID_SERIAL
done done
msg_ok "Disks imported successfully" msg_ok "Disks imported successfully"
fi fi