summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2023-05-29 14:43:59 +0300
committerSerhii Voloshynov <serhii.voloshynov@globallogic.com>2023-05-29 14:43:59 +0300
commitaf9ce3ab1722c0ba9f60a2a042cedf5ff5908949 (patch)
tree2f8a69dce5a13903dc2bde2a8bb5c727b2dc6424 /recipes-core
parentb61797fd00df4dd9f1dbbb10a85c4de9e8a97f35 (diff)
downloadmeta-mlinux-af9ce3ab1722c0ba9f60a2a042cedf5ff5908949.tar.gz
meta-mlinux-af9ce3ab1722c0ba9f60a2a042cedf5ff5908949.tar.bz2
meta-mlinux-af9ce3ab1722c0ba9f60a2a042cedf5ff5908949.zip
yet another fix after review
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/multitech/overlayfs-init-ubi/overlayfs.init6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
index c5d3d37..c6a3ace 100644
--- a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
+++ b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
@@ -43,7 +43,7 @@ my_switch_root() {
for f in $fs ; do
if [[ -d $NEW_ROOT/$f ]] ; then
loginfo "my_switch_root: mount -o noatime,move --bind $f $NEW_ROOT/$f"
- mount -o noatime,move --bind "$f" "$NEW_ROOT"/"$f"
+ mount -o noatime,move --bind "$f" "$NEW_ROOT/$f"
else
# loginfo "my_switch_root: Skipping $NEW_ROOT/$f"
:
@@ -74,8 +74,6 @@ do_erase_persistent() {
ubiupdatevol "${DEV}" -t 2>&1 | logpipe
mnt_user
- fw_setenv erase_persistent_f 0
- fw_setenv default_reset_f 0
}
do_rw_mount() {
@@ -85,6 +83,8 @@ do_rw_mount() {
mnt_user # user_data is now accessible
if [[ "$DO_ERASE_PERSISTENT" -eq 1 ]] ; then
do_erase_persistent
+ fw_setenv erase_persistent_f 0
+ fw_setenv default_reset_f 0
elif [[ "$DO_ERASE_ALL_EXCEPT_PERSISTENT" -eq 1 ]] ; then
do_erase_all_except_persistent
fw_setenv default_reset_f 0