Skip to contentSkip to conversation

initramfs-framework: overlayroot: Don't assume rootfs location

PATCH New Marcus Flyckt 1 participant 1 message May 8

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 .../recipes-core/initrdscripts/initramfs-framework/overlayroot | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-core/initrdscripts/initramfs-framework/overlayroot +1 -2
index 0d41432878..dacbcbe213 100644
@@ -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"
Signature · 1 line
2.43.0