Skip to content

Commit 74ee986

Browse files
authored
Merge pull request #1332 from balajiv113/disk-m1
Fix QEMU issue on binding multiple disks in M1
2 parents 7d2a16f + 5270f92 commit 74ee986

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

pkg/qemu/qemu.go

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -457,17 +457,10 @@ func Cmdline(cfg Config) (string, []string, error) {
457457
}
458458

459459
// cloud-init
460-
switch *y.Arch {
461-
case limayaml.RISCV64:
462-
// -cdrom does not seem recognized for RISCV64
463-
args = append(args,
464-
"-drive", "id=cdrom0,if=none,format=raw,readonly=on,file="+filepath.Join(cfg.InstanceDir, filenames.CIDataISO),
465-
"-device", "virtio-scsi-pci,id=scsi0",
466-
"-device", "scsi-cd,bus=scsi0.0,drive=cdrom0")
467-
default:
468-
// TODO: consider using virtio cdrom for all the architectures
469-
args = append(args, "-cdrom", filepath.Join(cfg.InstanceDir, filenames.CIDataISO))
470-
}
460+
args = append(args,
461+
"-drive", "id=cdrom0,if=none,format=raw,readonly=on,file="+filepath.Join(cfg.InstanceDir, filenames.CIDataISO),
462+
"-device", "virtio-scsi-pci,id=scsi0",
463+
"-device", "scsi-cd,bus=scsi0.0,drive=cdrom0")
471464

472465
// Kernel
473466
kernel := filepath.Join(cfg.InstanceDir, filenames.Kernel)

0 commit comments

Comments
 (0)