Automatically create destination dir for 'proc' and 'tmpfs' mounts
authorRobert Swiecki <swiecki@google.com>
Thu, 25 Feb 2016 17:45:23 +0000 (18:45 +0100)
committerRobert Swiecki <swiecki@google.com>
Thu, 25 Feb 2016 17:45:23 +0000 (18:45 +0100)
cmdline.c

index 60465bbd97cef2239a98231ade9d6324306a9cc2..0bbf8f8c7e70c08bb92e546aaf37f91e80ccc64d 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -516,7 +516,7 @@ bool cmdlineParse(int argc, char *argv[], struct nsjconf_t * nsjconf)
                case 'T':
                        {
                                struct mounts_t *p = util_malloc(sizeof(struct mounts_t));
-                               p->src = "none";
+                               p->src = "/";
                                p->dst = optarg;
                                p->flags = 0;
                                p->options = cmdlineTmpfsSz;
@@ -560,7 +560,7 @@ bool cmdlineParse(int argc, char *argv[], struct nsjconf_t * nsjconf)
 
        if (nsjconf->mount_proc == true) {
                struct mounts_t *p = util_malloc(sizeof(struct mounts_t));
-               p->src = "none";
+               p->src = "/proc";
                p->dst = "/proc";
                p->flags = 0;
                p->options = NULL;