mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-24 21:47:26 +00:00
imported disks now have a serial ID. TrueNAS needs it.
This commit is contained in:
@@ -539,7 +539,10 @@ if [ "$IMPORT_DISKS" == "yes" ]; then
|
||||
|
||||
for SELECTION in $SELECTIONS; do
|
||||
((++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
|
||||
msg_ok "Disks imported successfully"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user