From: Rafał Miłecki Date: Tue, 4 Jan 2022 14:27:13 +0000 (+0100) Subject: libfstools: check for overlay mounting errors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f0fc66a6f468f9fe170596a82c91fadcbdf00830;p=project%2Ffstools.git libfstools: check for overlay mounting errors Signed-off-by: Rafał Miłecki --- diff --git a/libfstools/overlay.c b/libfstools/overlay.c index 5de12c5..87fad11 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -416,6 +416,7 @@ int fs_state_set(const char *dir, enum fs_state state) int mount_overlay(struct volume *v) { char *mp, *fs_name; + int err; if (!v) return -1; @@ -426,7 +427,9 @@ int mount_overlay(struct volume *v) return -1; } - overlay_mount_fs(v); + err = overlay_mount_fs(v); + if (err) + return err; extroot_prefix = "/tmp/overlay"; if (!mount_extroot()) {