]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
initramfs-framework: overlayroot: Don't assume rootfs location
authorMarcus Flyckt <marcus.flyckt@kvaser.com>
Fri, 8 May 2026 08:50:53 +0000 (10:50 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 May 2026 16:55:43 +0000 (17:55 +0100)
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 <marcus.flyckt@kvaser.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/overlayroot

index 0d414328789f1abcb72629b644c386b7947ac51d..dacbcbe213aacef9aed9279b1c29eeb2d1cf6e42 100644 (file)
@@ -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"