[lxc-devel] [PATCH] Mounting of filesystems from fstab file

Joerg Gollnick code4lxc at wurzelbenutzer.de
Sun Jan 16 18:00:43 UTC 2011


Dear all,
while setting up a container on x86_64 (archlinux host/guest) I had trouble 
with mounting dev/pts and others from container.fstab and a ssh login does not 
work (only ssh container bash -i gives you a shell)
The cause is that conf.c does not initialize mntflags.
Best regards Joerg


--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -880,7 +880,8 @@ static int parse_mntopts(const char *mntopts, unsigned 
long *mntflags,
        char *s, *data;
        char *p, *saveptr = NULL;
 
-       *mntdata = NULL;
+       *mntdata  = NULL;
+        *mntflags = 0UL;
 
        if (!mntopts)
                return 0;




More information about the lxc-devel mailing list