From: Marcus Flyckt Date: Fri, 8 May 2026 08:50:53 +0000 (+0200) Subject: initramfs-framework: overlayroot: Don't assume rootfs location X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c644ecf8150e3f0ec5043843e63dfa58df4595f;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git initramfs-framework: overlayroot: Don't assume rootfs location 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 Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- 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"