From 3974ca41334eb8ce08fbdad868c0d5c3dab5b799 Mon Sep 17 00:00:00 2001 From: Mykyta Dorokhin Date: Tue, 24 Nov 2020 10:55:09 +0200 Subject: mtk: erase user_data partition on mount error. Fix output messages. --- recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes-core/initrdscripts') diff --git a/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh b/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh index a1c7244..ac79429 100755 --- a/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh +++ b/recipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh @@ -274,7 +274,7 @@ mount_and_boot() { if ! $MOUNT $ROOT_RWMOUNTPARAMS $ROOT_RWMOUNT ; then if [ -n "${ROOT_RWDEVICE}" ]; then # fsck didn't help. Reformat the partition - log "Could not mount read-write rootfs. Erasing ${ROOT_RWDEVICE} partition." + log "Could not mount user_data partition. Erasing ${ROOT_RWDEVICE}." mkfs.ext4 -L user_data -O 64bit ${ROOT_RWDEVICE} log "mounting user_data: $MOUNT $ROOT_RWMOUNTPARAMS $ROOT_RWMOUNT" if ! $MOUNT $ROOT_RWMOUNTPARAMS $ROOT_RWMOUNT ; then @@ -282,7 +282,7 @@ mount_and_boot() { fi log "${ROOT_RWDEVICE} partition has been erased and mounted successfully." else - fatal "Could not mount read-write rootfs." + fatal "Could not mount user_data partition." fi fi -- cgit v1.2.3