diff options
Diffstat (limited to 'recipes-core/multitech/overlayfs-init-ubi')
-rw-r--r-- | recipes-core/multitech/overlayfs-init-ubi/overlayfs.init | 6 |
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 |