diff mbox series

[v2] initramfs-framework: rdepend on mountpoint command

Message ID 4f922d17bac5aaadc452efb965b9d320daca8f1e.camel@iris-sensing.com
State New
Headers show
Series [v2] initramfs-framework: rdepend on mountpoint command | expand

Commit Message

Erik Schumacher Dec. 16, 2025, 4: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 to the base-package and the
rootfs module.

Signed-off-by: Erik Schumacher <erik.schumacher@iris-sensing.com>
---
v2: Add SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS and add RDEPENDS to both
packages
---
 meta/conf/layer.conf                                       | 1 +
 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.52.0
diff mbox series

Patch

diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index ba25ca3029..5477e9846f 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -61,6 +61,7 @@  SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
   initramfs-framework->eudev \
   initramfs-framework->systemd \
+  initramfs-framework->util-linux \
   initramfs-module-install-efi->dosfstools \
   initramfs-module-install-efi->e2fsprogs \
   initramfs-module-install-efi->parted \
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
index 2ec03bc34c..4df10035fa 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
+++ b/meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb
@@ -79,6 +79,9 @@  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
+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"
@@ -100,7 +103,7 @@  RDEPENDS:initramfs-module-nfsrootfs = "${PN}-base"
 FILES:initramfs-module-nfsrootfs = "/init.d/85-nfsrootfs"
 
 SUMMARY:initramfs-module-rootfs = "initramfs support for locating and mounting the root partition"
-RDEPENDS:initramfs-module-rootfs = "${PN}-base"
+RDEPENDS:initramfs-module-rootfs = "${PN}-base util-linux-mountpoint"
 FILES:initramfs-module-rootfs = "/init.d/90-rootfs"
 
 SUMMARY:initramfs-module-debug = "initramfs dynamic debug support"