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

Comments

Mathieu Dubois-Briand Dec. 15, 2025, 11:40 a.m. UTC | #1
On Fri Dec 12, 2025 at 1:18 PM CET, Erik Schumacher via lists.openembedded.org wrote:
> 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>
> ---

Hi Erik,

Thanks for your patch.

It looks like test_sstate_allarch_samesigs selftest is not happy with
it:

2025-12-12 20:04:30,268 - oe-selftest - INFO - FAIL: sstatetests.SStateHashSameSigs2.test_sstate_allarch_samesigs (subunit.RemotedTestCase)
2025-12-12 20:04:30,268 - oe-selftest - INFO - ----------------------------------------------------------------------
2025-12-12 20:04:30,269 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/sstatetests.py", line 469, in test_sstate_allarch_samesigs
    self.sstate_common_samesigs(configA, configB, allarch=True)
  File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/sstatetests.py", line 206, in sstate_common_samesigs
    self.assertEqual(files1, files2)
  File "/usr/lib/python3.11/unittest/case.py", line 873, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.11/unittest/case.py", line 1172, in assertDictEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib/python3.11/unittest/case.py", line 703, in fail
    raise self.failureException(msg)
AssertionError: {'nat[288907 chars]a': '5a33f309254c400149bac668b24712ae47b6f23e8[23676 chars]227'} != {'nat[288907 chars]a': '6886ab9a3ed9d12360fec5c00278339454f9b165f[23676 chars]227'}
  {'adwaita-icon-theme/do_collect_spdx_deps': 'a9b207cbd8fc530325dd6ac6ed1326c598ba5d388cb0487def95f8f57e429276',
   'adwaita-icon-theme/do_compile': '65c25400fef52b15166f6c3182a8e869f6bb83bbe612313108241128bcaeddb1',
   'adwaita-icon-theme/do_configure': '9876c62c2d670de1ec2c083743eaaecfb58eb6b5c073a49cfa4c54fc15f295fa',
   'adwaita-icon-theme/do_create_package_spdx': 'c81242a6feb654b5683155931994f10cfaed5e4b509178b661522ccd5ce4c46e',
   'adwaita-icon-theme/do_create_spdx': 'aa9d785474f0a70486bfc5898b741b9a945e7dc7a851bbb3cc3efc848fd3ebf4',
...

https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/2827
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/2720
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/2964

Can you have a look at the issue?

Thanks,
Mathieu
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"