[lxc-devel] [PATCH] debian: Symlink /etc/mtab

Holger Amann holger at sauspiel.de
Fri Mar 21 14:47:23 UTC 2014


Am 21.03.2014 um 15:34 schrieb Stéphane Graber <stgraber at ubuntu.com>:

> I'm surprised Debian doesn't do an initial /proc/mounts to /etc/mtab
> copy at boot time, but apparently it doesn't (just tried with a Jessie
> container), so I guess we'll need that workaround…

/etc/init.d/checkroot.sh does it, but checkroot.sh is disabled by lxc-debian template [1]

…
# If possible, migrate /etc/mtab to be a symlink to
        # /proc/mounts.  Note that not all systems e.g. Hurd currently
        # support this.
        if [ "$rootmode" != "ro" ]; then
                mtab_migrate
        fi
...


[1] https://github.com/lxc/lxc/blob/master/templates/lxc-debian.in#L106





More information about the lxc-devel mailing list