From: Daan De Meyer Date: Wed, 26 Mar 2025 09:25:35 +0000 (+0100) Subject: qemu: Set device_id for scsi-hd and scsi-cd devices X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3622%2Fhead;p=thirdparty%2Fmkosi.git qemu: Set device_id for scsi-hd and scsi-cd devices When we used -drive this was done automatically but that's not the case anymore with -blockdev, so do it explicitly ourselves. --- diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 8e6ec7770..0c406d818 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -1472,9 +1472,9 @@ def run_qemu(args: Args, config: Config) -> None: device_type = "virtio-blk-pci" if config.cdrom: - device_type = "scsi-cd" + device_type = "scsi-cd,device_id=mkosi" elif config.removable: - device_type = "scsi-hd,removable=on" + device_type = "scsi-hd,device_id=mkosi,removable=on" cmdline += [ "-blockdev", ",".join(blockdev),