diff mbox series

initramfs-framework: rdepend on mountpoint command

Message ID d3c53664d86c0cc854a92f9b5dc17059ef7e3596.camel@iris-sensing.com
State New
Headers show
Series initramfs-framework: rdepend on mountpoint command | expand

Commit Message

Erik Schumacher Dec. 12, 2025, 12:18 p.m. UTC
The scripts of the framework base package and the rootfs module script,
both depend on the mountpoint command being available, which was
previously not the case. This led to boot failures when trying to boot
any rootfs with the core-image-initramfs-boot initrd:

/init: eval: line 16: mountpoint: not found

This change adds the correct RDEPENDS for the base-package with a note
that the rootfs-module also depends on it.

Signed-off-by: Erik Schumacher <erik.schumacher@iris-sensing.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.52.0
diff mbox series

Patch

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index 2ec03bc34c..26125cc8be 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -79,6 +79,10 @@  FILES:${PN}-base = "/init /init.d/99-finish /dev"
 # and mounts the rootfs. Then 90-rootfs will proceed immediately.
 RRECOMMENDS:${PN}-base += "initramfs-module-rootfs"
 
+# 99-finish needs the mountpoint utility, the rootfs module
+# also depends on mountpoint being preset
+RDEPENDS:${PN}-base += "util-linux-mountpoint"
+
 SUMMARY:initramfs-module-exec = "initramfs support for easy execution of applications"
 RDEPENDS:initramfs-module-exec = "${PN}-base"
 FILES:initramfs-module-exec = "/init.d/89-exec"