Skip to content

Commit

Permalink
virtme-ng: allow to specify multiple --rwdir and --rodir
Browse files Browse the repository at this point in the history
Allow to export multiple host directories as read-write or read-only
into the guest.

This fixes issue #166.

Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi committed Oct 6, 2024
1 parent a68aabc commit 4e92ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtme_ng/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,12 +868,12 @@ def _get_virtme_cwd(self, args):
def _get_virtme_rodir(self, args):
self.virtme_param["rodir"] = ""
for item in args.rodir:
self.virtme_param["rodir"] += "--rodir " + item
self.virtme_param["rodir"] += f"--rodir {item} "

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

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

0 comments on commit 4e92ba3

Please sign in to comment.