mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix: qemu disk set serial as disk_id
This commit is contained in:
@@ -326,6 +326,7 @@ func getDiskDeviceOption(optDrv QemuOptions, disk *desc.SGuestDisk) string {
|
||||
|
||||
var opt = ""
|
||||
opt += GetDiskDeviceModel(diskDriver)
|
||||
opt += fmt.Sprintf(",serial=%s", strings.ReplaceAll(disk.DiskId, "-", ""))
|
||||
opt += fmt.Sprintf(",drive=drive_%d", diskIndex)
|
||||
if diskDriver == DISK_DRIVER_VIRTIO {
|
||||
// virtio-blk
|
||||
|
||||
Reference in New Issue
Block a user