From 2b0ae1fb13a260ec4dc2d66517ef3c508cc45583 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9f7d26a646e132c0fefc962f0977740097932ca5 Author: [CST] Focus Date: 2015-01-09 (Fri, 09 Jan 2015) --- 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; }