[PATCH openbmc 14/32] update: Save files using the same mount path as init
OpenBMC Patches
openbmc-patches at stwcx.xyz
Sat Mar 5 23:30:05 AEDT 2016
From: "Milton D. Miller II" <miltonm at us.ibm.com>
Use the full /run/initramfs/rw path for the mount point of the
read-write filesystem.
This prevents creating and directories in / when it is invoked
before shutdown.
Signed-off-by: Milton Miller <miltonm at us.ibm.com>
---
.../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
index 1a11953..e580561 100755
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-update.sh
@@ -55,7 +55,7 @@ rwdev=/dev/mtdblock${rwfs#mtd}
rwopts=rw
rorwopts=ro${rwopts#rw}
-rwdir=rw
+rwdir=/run/initramfs/rw
upper=$rwdir/cow
save=/run/save/${upper##*/}
--
2.7.1
More information about the openbmc
mailing list