summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2023-06-07 10:05:11 +0300
committerJohn Klug <john.klug@multitech.com>2023-06-07 11:33:00 -0500
commitf6f7a6b714dc36ab536720caff12aa30e2ffa85f (patch)
tree81ace206654f56e7ea05483894f585bb5a237f9f /recipes-core
parent6febccca4b84fd27a4fb24a94a7a6c35859870b0 (diff)
downloadmeta-mlinux-f6f7a6b714dc36ab536720caff12aa30e2ffa85f.tar.gz
meta-mlinux-f6f7a6b714dc36ab536720caff12aa30e2ffa85f.tar.bz2
meta-mlinux-f6f7a6b714dc36ab536720caff12aa30e2ffa85f.zip
adapt MTCAP3 overlayfs.init to use /var/persistent on rootfs
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/multitech/overlayfs-init-ubi/overlayfs.init4
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
index c6a3ace..eee3aab 100644
--- a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
+++ b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
@@ -96,11 +96,9 @@ do_rw_mount() {
loginfo "/proc/mounts:"
cat /proc/mounts | grep overlay | logpipe
- mkdir -p ${OVERLAY}/var/persistent
-
- mount --bind ${MNT_USER}/.persistent ${OVERLAY}/var/persistent
loginfo "Switch root to $OVERLAY"
my_switch_root $OVERLAY
+ mount --bind /orig/mnt/user/.persistent/ /var/persistent
cat /proc/mounts | grep overlay | logpipe
mount -o remount,rw /
cat /proc/mounts | grep overlay | logpipe