On Wed, Jan 26, 2022 at 07:42:53AM -0800, Иван Присяжный wrote:
>
>
> вторник, 25 января 2022 г. в 20:42:55 UTC+2, Serge E. Hallyn:
>
> > A lot of user space wants to poke around /sys to get system
> > information.
> >
> > But you can disable its mounting into containers - or should be able to -
> > by
> > setting lxc.mount.auto to not include it. See 'man lxc.container.conf' for
> > information.
> >
>
> It seems that it is impossible to do so:
It's not. I put
lxc.mount.auto = proc:mixed
Into a busybox container's config, and /sys was thereafter not mounted.
Now, if an earlier line - perhaps in a lxc.include = file - specifies
lxc.mount.auto = sys:something, then you'll have to clear that out by
doing:
lxc.mount.auto =
lxc.mount.auto = proc:mixed
-serge