Skip to content

Commit 0ebbd16

Browse files
committed
qemu: Add help text for interactive mode
If there's a host mount specified, but we're in interactive mode, print the commands needed to mount the host mount point.
1 parent 12448f5 commit 0ebbd16

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/qemu.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ def qemu_main(qconf):
287287

288288
if qconf.interactive:
289289
logging.info("Running interactively ...")
290+
if qconf.host_mount:
291+
logging.info("To mount the host mount point run:")
292+
logging.info(" mkdir -p /mnt; mount -t 9p -o version=9p2000.L,trans=virtio host /mnt")
293+
290294
rc = subprocess.run(cmd, shell=True).returncode
291295
return rc == 0
292296

0 commit comments

Comments
 (0)