[Lxc-users] lxc-fstab vs /etc/fstab vs /lib/init/fstab
Trent W. Buck
twb at cyber.com.au
Wed Apr 6 01:29:10 UTC 2011
Serge Hallyn <serge.hallyn at canonical.com>
writes:
> Next, upstart's mountall consults /lib/init/fstab. That's the one
> which will usually prevent container startup from proceeding. The
> lxcguest package for ubuntu will force upstart to mount an empty
> version of that file before mountall runs. So if you install lxcguest
> then mountall can safely run, which makes your container safer against
> package updates.
Interesting approach. IIRC I just
dpkg-divert --rename /lib/init/fstab
:> /lib/init/fstab
although I was still having problems (I think mountall was trying to
REmount everything it found in mtab and/or /proc/mounts), so now I drop
mount capability and replace [un]mount with symlinks to /bin/true.
More information about the lxc-users
mailing list