| Summary: | do_rootfs step fails with read-only rootfs and systemd-compat-units package | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Zach Kozar <Zachary.Kozar> |
| Component: | core | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | ccasciato, meta.mr.watcher, meta.watcher, randy.macleod, yoann.congal |
| Version: | 5.99 | ||
| Target Milestone: | 6.0 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Zach Kozar
2025-12-19 20:01:09 UTC
Ross to reply. Reverting just leaves the race condition so that's not sufficient. Next to fix in master and scarthgap, etc. Reverting that commit will just reintroduce a race condition, so that isn't really a solution because you're swapping a problem for another problem. Looking at the recipe, none of that logic needs to happen on target. I shall send a patch to rewrite chunks of the recipe. I have a patch to change how that recipe works, can you test it please? https://lore.kernel.org/openembedded-core/20260113184632.3953060-1-ross.burton@arm.com/T/#u Also, are you aware that this package is only needed if you're building images with _both_ systemd and syvinit? That's not the best idea, and I recommend picking one. Thanks. I applied your patch and am able to build with both systemd-compat-units and read-only-rootfs. And no, I did not know that. I am not using sysvinit, and it is not in my distro features. It looks like my BSP is adding sysvinit into systemd's packageconfig: https://github.com/nxp-imx/meta-imx/blob/walnascar-6.12.34-2.1.0/meta-imx-bsp/recipes-core/systemd/systemd_%25.bbappend. However they are not adding it to the distro features. I added my own systemd bbappend to remove it from the config, and can confirm it no longer pulls in systemd-compat-units. Sorry if this is off topic. Merged in 4dc01e016210acd15f153b25e609dce5eee9e0bb. |