From f6f7a6b714dc36ab536720caff12aa30e2ffa85f Mon Sep 17 00:00:00 2001 From: Serhii Voloshynov Date: Wed, 7 Jun 2023 10:05:11 +0300 Subject: adapt MTCAP3 overlayfs.init to use /var/persistent on rootfs --- recipes-core/multitech/overlayfs-init-ubi/overlayfs.init | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3