pmb.qemu.run: Use f-string for img_path_2nd argument building (MR 2464)

img_path_2nd is a Path, not a str, so we can't just rely on string
concatenation here.

img_path_2nd is a Path as that's what create_second_storage() returns
since 198f302a36.
This commit is contained in:
Newbyte 2024-10-29 19:29:48 +01:00
parent 826bb4f2dd
commit 47c8492577
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -218,7 +218,7 @@ def command_qemu(args: PmbArgs, config: Config, arch: Arch, img_path, img_path_2
command += ["-drive", f"file={img_path},format=raw,if=virtio"]
if img_path_2nd:
command += ["-drive", "file=" + img_path_2nd + ",format=raw,if=virtio"]
command += ["-drive", f"file={img_path_2nd}" + ",format=raw,if=virtio"]
if args.qemu_tablet:
command += ["-device", "virtio-tablet-pci"]