-
Notifications
You must be signed in to change notification settings - Fork 81
Description
Another case where what I want seems simple enough, but I'm not sure what the behaviour/UX should be.
I don't like using my host rootfs for testing (it changes too much) so I normally boot a minimal guest in virtme-ng and then pass stuff I wanna run in there in via --rodir or --rwdir. I usually just use /mnt as the guest directory for that.
The minor annoyance comes when I wanna pass multiple directories in that way: the target directory needs to exist in the guest but if I've already used /mnt for one directory I can't use it again.
I think the best ways I can see to solve that would be:
- Just have
virtme-initcreate the target directory unconditionally. - Add some optional variant like
--rwdir-create/--rodir-createthat does this.
Option 1 seems like it might cause some surprise since that's not how mount or /etc/fstab works. If it only created 1 level of directory (mkdir rather than mkdir -p) that might help mitigate the worst sources of confusion. Option 2 seems easiest to reason about but it's kinda annoying to create new "configuration surface" like that. Any other options / other thoughts?