init: Add option to run with writable overlay in RAM
If overlay-filesystem-in-ram is found set rwfst=none suppressing
the rwfs mount.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
diff --git a/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh b/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
index 7953176..2e8467c 100644
--- a/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
+++ b/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-init.sh
@@ -164,6 +164,11 @@
fsck=$fsckbase$rwfst
fi
+if grep -w overlay-filesystem-in-ram $optfile
+then
+ rwfst=none
+fi
+
if test -s /run/image-rofs
then
rodev=/run/image-rofs