From aa59a26581d5350ef065854bd0b8a86de910700b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 22 Mar 2015 14:11:39 +0100 Subject: [PATCH] overlay: call volume_init() before mount Signed-off-by: Felix Fietkau --- libfstools/overlay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.25.1