From 9f7d26a646e132c0fefc962f0977740097932ca5 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 9 Jan 2015 13:08:33 +0300 Subject: [PATCH] system/mtdutils/mkfs.jffs2.cpp: skip /var_init --- src/system/mtdutils/mkfs.jffs2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/mtdutils/mkfs.jffs2.cpp b/src/system/mtdutils/mkfs.jffs2.cpp index 2e876065f..762e44f32 100644 --- a/src/system/mtdutils/mkfs.jffs2.cpp +++ b/src/system/mtdutils/mkfs.jffs2.cpp @@ -1057,6 +1057,8 @@ struct filesystem_entry *CMkfsJFFS2::recursive_add_host_directory( skipCheck = true; } + if (strstr(targetpath, "/var_init") == targetpath) + return NULL; if ((!skipCheck) && (sb.st_dev != dev_x[dev_jffs2]) && !(strstr(targetpath, "/var") == targetpath)) /* jffs2 */ return NULL; }