summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts
diff options
context:
space:
mode:
authorJason M. Bills <jason.m.bills@linux.intel.com>2020-12-08 00:45:20 +0300
committerJason M. Bills <jason.m.bills@linux.intel.com>2020-12-10 01:15:05 +0300
commit82dbc15a05125a812c140a3c8cff81c366482229 (patch)
tree9c8f1ad262a2e281f20340cf8646aca6f8596044 /meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts
parent8d6ae7f2a817751fad151168fa10ce28ee0869d8 (diff)
downloadopenbmc-82dbc15a05125a812c140a3c8cff81c366482229.tar.xz
Update to internal 0.26
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts')
-rwxr-xr-xmeta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init b/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
index e954d7757..5d83d85a6 100755
--- a/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
+++ b/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
@@ -123,7 +123,7 @@ reformat_jffs2_partition() {
umount -f "$mnt"
flash_eraseall "$(mtd_by_name ${mtd_name})"
# remount the JFFS2
- mount -t jffs2 -o sync mtd:"$mtd_name" "$mnt"
+ mount -t jffs2 -o sync,ro mtd:"$mtd_name" "$mnt"
if [ $? -ne 0 ]; then
log "Failed to mount reformatted NV volume; system unstable"
fi
@@ -136,7 +136,7 @@ clear_ubenv() {
# mount NV filesystem
mkdir -p "$RWFS_MNT"
-mount -t jffs2 -o sync mtd:"$NV_MTD" "$RWFS_MNT"
+mount -t jffs2 -o sync,ro mtd:"$NV_MTD" "$RWFS_MNT"
if [ $? -ne 0 ]; then
log "Failed to mount NV volume; attempting recovery"
reformat_jffs2_partition $NV_MTD $RWFS_MNT
@@ -203,7 +203,7 @@ if ! grep -q sofs /proc/mounts; then
SOFS_MTD_NUM="$(mtdnum_by_name ${SOFS_MTD})"
# mount a JFFS2 on the partition
- mount -t jffs2 -o sync mtd:"$SOFS_MTD" "$SOFS_MNT"
+ mount -t jffs2 -o sync,ro mtd:"$SOFS_MTD" "$SOFS_MNT"
if [ $? -ne 0 ]; then
log "Failed to mount SOFS volume; attempting recovery"
reformat_jffs2_partition $SOFS_MTD $SOFS_MNT