summaryrefslogtreecommitdiff
path: root/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2020-11-24 10:55:09 +0200
committerJohn Klug <john.klug@multitech.com>2020-11-24 11:58:54 -0600
commit3974ca41334eb8ce08fbdad868c0d5c3dab5b799 (patch)
treed5734b3f1c283dd0fccfc0d206c7002a095fad76 /recipes-core/initrdscripts
parent47b085f1dc14f2fc151a9ef2417feb6023719bcc (diff)
downloadmeta-mlinux-3974ca41334eb8ce08fbdad868c0d5c3dab5b799.tar.gz
meta-mlinux-3974ca41334eb8ce08fbdad868c0d5c3dab5b799.tar.bz2
meta-mlinux-3974ca41334eb8ce08fbdad868c0d5c3dab5b799.zip
mtk: erase user_data partition on mount error. Fix output messages.
Diffstat (limited to 'recipes-core/initrdscripts')
-rwxr-xr-xrecipes-core/initrdscripts/files/init-readonly-rootfs-overlay-boot.sh4
1 files changed, 2 insertions, 2 deletions
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