summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2016-02-27 16:38:16 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2016-03-04 10:51:50 -0600
commited3680d0281ba6e908be5508e50e5c32ce2df5b4 (patch)
tree98b0ea996e330611861f390a06da197001d94d7d
parent03fea6ca80e9a978be9bae505d7d8b650d106b88 (diff)
downloadtalos-openbmc-ed3680d0281ba6e908be5508e50e5c32ce2df5b4.tar.gz
talos-openbmc-ed3680d0281ba6e908be5508e50e5c32ce2df5b4.zip
init: Run from RAM if file system type is specified as none
Allow file system type none for rwfst, which means do not mount a separate file system but just use the directory in the tmpfs /run. This will be used to allow the flash controller to not be used by the running image, allowing flash updates while the BMC is running the main application. It could also be used for a file system less prone to corruption where the read-write overlay is only updated with whitelisted files at specific points in time with updates to the update script. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rw-r--r--meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh8
1 files changed, 6 insertions, 2 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 d4d2cc1be..89e4538ee 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,12 +183,16 @@ then
then
debug_takeover "fsck of read-write fs on $rwdev failed (rc=$rc)"
fi
-elif test "$rwfst" != jffs2
+elif test "$rwfst" != jffs2 -a "$rwfst" != none
then
echo "No '$fsck' in read only fs, skipping fsck."
fi
-if ! mount $rwdev $rwdir -t $rwfst -o $rwopts
+if test "$rwfst" = none
+then
+ echo "Running with read-write overlay in RAM for this boot."
+ echo "No state will be preserved unless flash update performed."
+elif ! mount $rwdev $rwdir -t $rwfst -o $rwopts
then
msg="$(cat)" << HERE
OpenPOWER on IntegriCloud