forked from Mirror/pmbootstrap
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:
parent
826bb4f2dd
commit
47c8492577
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue