On Fri, Dec 08, 2017 at 11:57:08PM -0800, [email protected] wrote:
> How do you automount /dev/xvdi in AppVMs?
> 
> In a typical OS, this is done by modifying /etc/fstab. With Qubes OS AppVMs, 
> /etc/fstab is not preserved between reboots.
> 
> Should I modify the TemplateVM's /etc/fstab?
> 
> Should I add "mount /dev/xvdi /mnt/removable" to the AppVM's 
> /rw/config/rc.local?
> 

Yes, you can run the mount from rc.local.
Obviously you'll need to ensure that the device is attached first, so
if you're using the qrexec service I suggested, make sure that's called
first and completes before you attempt the mount.

Just for completeness, I'll point out that you can use bind-dirs to make
any file persistent within a qube - have a look at
www.qubes-os.org/doc/bind-dirs/  
I'm not sure how this would work with /etc/fstab - I cant check the
service order at the moment - but it's something you might not be aware
of. At worst you'd need an extra 'mount -a'  call after bind-dirs.

unman

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20171209154712.vqdxjorew4j3v35g%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to