From: Felix Fietkau Date: Sun, 22 Mar 2015 13:11:39 +0000 (+0100) Subject: overlay: call volume_init() before mount X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa59a26581d5350ef065854bd0b8a86de910700b;p=oweals%2Ffstools.git overlay: call volume_init() before mount Signed-off-by: Felix Fietkau --- diff --git a/libfstools/overlay.c b/libfstools/overlay.c index c535693..7c9b480 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -255,14 +255,14 @@ static int overlay_mount_fs(struct volume *v) break; } + volume_init(v); + if (mount(v->blk, "/tmp/overlay", fstype, MS_NOATIME, NULL)) { ULOG_ERR("failed to mount -t %s %s /tmp/overlay: %s\n", fstype, v->blk, strerror(errno)); return -1; } - volume_init(v); - return -1; }