[PATCH openbmc 24/32] init: Add option to run with writable overlay in RAM

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat Mar 5 23:30:15 AEDT 2016


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

If overlay-filesystem-in-ram is found set rwfst=none suppressing
the rwfs mount.

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

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 7953176..2e8467c 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
@@ -164,6 +164,11 @@ then
 	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
-- 
2.7.1




More information about the openbmc mailing list