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
> On Sep 29, 2016, at 8:41 AM, Jonathan Perkin wrote:
>
> * On 2016-09-29 at 13:29 BST, Rob Seastrom wrote:
>
>> Of course, now you have a problem: since you put the alias in
>> ~root/.bashrc, it will be gone after you reboot, because the SmartOS global
>> zone is
* 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
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?
Regards
Jorge
On 2016-09-29 14:41, Jonathan Perkin wrote:
* On 2016-09-29 at
* On 2016-09-29 at 13:29 BST, Rob Seastrom wrote:
> Of course, now you have a problem: since you put the alias in ~root/.bashrc,
> it will be gone after you reboot, because the SmartOS global zone is volatile
> (filesystem is run from ram). So what you need is an SMF service to copy
> files
> On Sep 29, 2016, at 7:02 AM, the outsider wrote:
>
> It would be nice to have shutdown and/or reboot functions on the global zone
> protected with a yes/no option.
>
> It is just something to make the system fool proof, where sender considers
> himself foolish
>
It would be nice to have shutdown and/or reboot functions on the global zone
protected with a yes/no option.
It is just something to make the system fool proof, where sender considers
himself foolish
Yesterday I needed to reboot a couple of zones but before that I needed to
shutdown some