Skip to content

Commit 4e92ba3

Browse files
committed
virtme-ng: allow to specify multiple --rwdir and --rodir
Allow to export multiple host directories as read-write or read-only into the guest. This fixes issue #166. Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
1 parent a68aabc commit 4e92ba3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtme_ng/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -868,12 +868,12 @@ def _get_virtme_cwd(self, args):
868868
def _get_virtme_rodir(self, args):
869869
self.virtme_param["rodir"] = ""
870870
for item in args.rodir:
871-
self.virtme_param["rodir"] += "--rodir " + item
871+
self.virtme_param["rodir"] += f"--rodir {item} "
872872

873873
def _get_virtme_rwdir(self, args):
874874
self.virtme_param["rwdir"] = ""
875875
for item in args.rwdir:
876-
self.virtme_param["rwdir"] += "--rwdir " + item
876+
self.virtme_param["rwdir"] += f"--rwdir {item} "
877877

878878
def _get_virtme_overlay_rwdir(self, args):
879879
# Set default overlays if rootfs is mounted in read-only mode.

0 commit comments

Comments
 (0)