diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:55:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:55:58 +0200 |
commit | a04f58d6cb678a574e85a26c453aeb6c7884bb93 (patch) | |
tree | 6f91957539165b9142dbfcbc2a24cad38eb81cad /mount-setup.c | |
parent | 055ba4d60e9539d5ec7cc66cc7a7ea3c0ce93679 (diff) |
mount-setup: create mount points if not existing yet
Diffstat (limited to 'mount-setup.c')
-rw-r--r-- | mount-setup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mount-setup.c b/mount-setup.c index 12605ebb4d..c6a471237b 100644 --- a/mount-setup.c +++ b/mount-setup.c @@ -85,6 +85,10 @@ static int mount_one(const char *t[]) { if (r > 0) return 0; + /* The access mode here doesn't really matter too much, since + * the mounted file system will take precedence anyway. */ + mkdir(t[MOUNT_WHERE], 0755); + log_debug("Mounting %s to %s of type %s with options %s.", t[MOUNT_WHAT], t[MOUNT_WHERE], |