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; }