summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2016-02-27 16:20:56 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2016-03-04 10:51:49 -0600
commit03fea6ca80e9a978be9bae505d7d8b650d106b88 (patch)
tree741ded811116261e33c1a943b8bb7d2738ed0562
parenta8f26b67add63a916409823c1fad4adf28776e2f (diff)
downloadtalos-openbmc-03fea6ca80e9a978be9bae505d7d8b650d106b88.tar.gz
talos-openbmc-03fea6ca80e9a978be9bae505d7d8b650d106b88.zip
init: Suppress fsck command not present error by file system type
Decide lack of fsck is not a problem by the type of the rwfs image instead of the full name of the fsck command. This eliminates duplicates knowledge of how the fsck path is formed. Suggested-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rw-r--r--meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh2
1 files changed, 1 insertions, 1 deletions
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 538299e4d..d4d2cc1be 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
@@ -183,7 +183,7 @@ then
then
debug_takeover "fsck of read-write fs on $rwdev failed (rc=$rc)"
fi
-elif test $fsck != /sbin/fsck.jffs2
+elif test "$rwfst" != jffs2
then
echo "No '$fsck' in read only fs, skipping fsck."
fi
OpenPOWER on IntegriCloud