[PATCH openbmc 7/9] initfs: Do not warn on missing jffs2 fsck

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Feb 25 05:40:22 AEDT 2016


From: Milton Miller <miltonm at us.ibm.com>

We know there is no command and we plan to have this the default.

Suppress the message to avoid user questions and concerns.

Signed-off-by: Milton Miller <miltonm at us.ibm.com>
---
 .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
index 7fc6587..f2fe938 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
@@ -119,7 +119,8 @@ then
 	then
 		debug_takeover "fsck of read-write fs on $rwdev failed (rc=$rc)"
 	fi
-else
+elif test $fsck != /sbin/fsck.jffs2
+then
 	echo "No '$fsck' in read only fs, skipping fsck."
 fi
 
-- 
2.7.1




More information about the openbmc mailing list