Skip to content

Commit 0230fd5

Browse files
driver/qemudriver: fix disk attribute for vexpress-a9 machine
Since the q35 machine was added, using the vexpress-a9 machine with a disk attribute ends up with a NotImplementedError. Fix that. Fixes: 9bdacb2 ("driver/qemudriver: add support for Q35 machine") Signed-off-by: Bastian Krause <bst@pengutronix.de>
1 parent 6ad1d66 commit 0230fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labgrid/driver/qemudriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def on_activate(self):
121121
self._cmd.append(
122122
f"if=sd,format={disk_format},file={disk_path},id=mmc0")
123123
boot_args.append("root=/dev/mmcblk0p1 rootfstype=ext4 rootwait")
124-
if self.machine == "q35":
124+
elif self.machine == "q35":
125125
self._cmd.append("-drive")
126126
self._cmd.append(
127127
f"if=virtio,format={disk_format},file={disk_path}")

0 commit comments

Comments
 (0)