[Lxc-users] LXC Container Boot/Shutdown errors
Trent W. Buck
twb at cybersource.com.au
Mon Feb 28 01:06:10 UTC 2011
Kelly Gibson <kgibson at gmail.com> writes:
> Unless I misunderstand this, it seems to me that there should be a way to
> designate that some of the file systems listed in [guest].fstab should not
> be remounted in read-only mode during a shutdown.
I address this by denying mount privileges to the container
(i.e. lxc.cap.drop = sys_admin). You might also do it by patching the
container's shutdown scripts, or by making mount(8) a symlink to true(1)
which would still allow you to call the real mount inside the container
as needed.
More information about the lxc-users
mailing list