[lxc-devel] [PATCH 1/4] Automatic mounts: improvements for /proc and /sys

Christian Seiler christian at iwakd.de
Thu Sep 26 20:27:21 UTC 2013


Hi Serge,

>> Yes, I see what you mean, but this is definitely a change in the
>> behaviour of the kernel compared to previous versions. And that
>> also means that (see other thread) bind-mounting a rootfs onto
>> itself will not prevent a container from remounting the filesystem
>> readonly on shutdown.
>
> True, but (despite my having forgotten this in the earlier parts of
> this thread) that *should* always have been the case.  I distinctly
> remember being disappointed a few years ago about it.

No, previously, the kernel has behaved differently. As I said,
on my 3.2 and 2.6.32 a mount -o remount,ro /bindmount without
the bind option would only change the bind mount and not the
entire filesystem. That definitely changed somewhere in
between 3.2 and 3.8.

-- Christian





More information about the lxc-devel mailing list