On Sun, May 19, 2013 at 09:20:11PM -0300, Henrique de Moraes Holschuh wrote:
> On Sun, 19 May 2013, Steve Langasek wrote:
> > I strongly recommend a more generic approach of detecting whether the
> > required mount is already mounted, and skipping the operation if it is.

> There is the non-obvious, and quite vexing issue of mount options.

Non-obvious, but it did occur to me as I was writing this comment because of
a related bug in Ubuntu about failing to remount initramfs-mounted
filesystems with the mount options specified in /etc/fstab.

I think it doesn't actually impact the correct design here.  Either your
mount does have a compatible set of mount options, in which case you don't
need to do anything; or it doesn't, in which case a remount is the correct
course of action and if it fails, it fails.  The proper course of action for
the admin in the case of a mismatch is the same, no matter how this is
handled within the lxc environment - it needs to be fixed in the
configuration outside the container.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: Digital signature

Reply via email to