From 82dbc15a05125a812c140a3c8cff81c366482229 Mon Sep 17 00:00:00 2001 From: "Jason M. Bills" Date: Mon, 7 Dec 2020 13:45:20 -0800 Subject: Update to internal 0.26 Signed-off-by: Jason M. Bills --- .../meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts') 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 -- cgit v1.2.3