system/mtdutils/mkfs.jffs2.cpp: skip /var_init

Origin commit data
------------------
Commit: 9f7d26a646
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-01-09 (Fri, 09 Jan 2015)
This commit is contained in:
[CST] Focus
2015-01-09 13:08:33 +03:00
parent 78774d5733
commit 2b0ae1fb13

View File

@@ -1057,6 +1057,8 @@ struct filesystem_entry *CMkfsJFFS2::recursive_add_host_directory(
skipCheck = true; skipCheck = true;
} }
if (strstr(targetpath, "/var_init") == targetpath)
return NULL;
if ((!skipCheck) && (sb.st_dev != dev_x[dev_jffs2]) && !(strstr(targetpath, "/var") == targetpath)) /* jffs2 */ if ((!skipCheck) && (sb.st_dev != dev_x[dev_jffs2]) && !(strstr(targetpath, "/var") == targetpath)) /* jffs2 */
return NULL; return NULL;
} }