In smartos-live/overlay/generic/lib/svc/method/fs-joyent, if you add

+ if [[ -d /usbkey/crud ]]; then
+ (cd /usbkey/crud;find . -type f -print|xargs -i sh -c 'cd /;mkdir -p
`dirname "{}"`;touch "{}";mount -F lofs /usbkey/crud/"{}" "{}"')
+ fi

then all files under /usbkey/crud will be lofs mouted under /.

The credit goes to Ira Cooper.

On Thu, Sep 29, 2016 at 9:45 AM, Jonathan Perkin <jper...@joyent.com> wrote:

> * On 2016-09-29 at 14:33 BST, Jorge Schrauwen wrote:
>
> > Something like this would be really nice to have upstream,
> >
> > [ -d /usbkey/root ] &&  mount -O -F lofs /usbkey/root /root
> >
> > Or whatever in the local-fs service? Is it worth opening a issue for
> this,
> > or a PR even?
> 
> Yeh, I've wondered about adding a root_home_overlay or whatever to
> /usbkey/config for this.  It's worth a PR at least so we can gather
> input about what might be affected by this (e.g. how it interacts with
> root_authorized_keys).
> 
> --
> Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com
> 



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to