Instead of assuming that the old rootfs is located at /rootfs, use the
ROOTFS_DIR variable.

This makes it possible to change rootfs location between the rootfs
module and the overlayroot module.

Signed-off-by: Marcus Flyckt <[email protected]>
---
 .../recipes-core/initrdscripts/initramfs-framework/overlayroot | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot 
b/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
index 0d41432878..dacbcbe213 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/overlayroot
@@ -37,8 +37,7 @@
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
-# We get OLDROOT from the rootfs module
-OLDROOT="/rootfs"
+OLDROOT="${ROOTFS_DIR}"
 
 NEWROOT="${RWMOUNT}/root"
 RWMOUNT="/overlay"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#236698): 
https://lists.openembedded.org/g/openembedded-core/message/236698
Mute This Topic: https://lists.openembedded.org/mt/119211166/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to