zerovm / zerovm-cli

ZeroVM command line utilities
Apache License 2.0
6 stars 7 forks source link

Add host filesystem files to tar and mount it #36

Open pkit opened 10 years ago

pkit commented 10 years ago

We need to mimic the behavior of host filesystem more closely. For that I propose to create a tar file with all the host files mentioned on the zvsh command line. And then mount that tar. This way the paths to files will be the same on host and inside the session. There are other features that will be added by implementing the above:

larsbutler commented 10 years ago

Seems like a good idea. How would you like to user interface to look? My initial thought is to implement it something like this:

$ zvsh --zvm-image=foo.tar --mount=/home/lars/bar,/usr/share myapp.nexe arg1 arg2

where /usr/share is optional mount point. I guess this could work for files or folders.

Thinking further, we could just use one command for everything; there is enough overlap between --mount and --zvm-image. Maybe we could deprecate --zvm-image?

mgeisler commented 10 years ago

I would like us to avoid introducing more foo,bar arguments — , is not a special character in character in filenames (CVS names files with ,).