Bug 2459819
| Summary: | kmodtool: akmods-ostree-post call in %post is fatal | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jon Mulder <jon.e.mulder> |
| Component: | kmodtool | Assignee: | Nicolas Chauvet (kwizart) <kwizart> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | getchoo, hans, hobbes1069, kwizart, leigh123linux, negativo17, nicolas.vieville |
| Target Milestone: | --- | Keywords: | Bugfix |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://github.com/mulderje/ublue-oldair/actions/runs/24681672015/job/72180274839#step:2:1 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-05-16 12:30:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jon Mulder
2026-04-20 18:16:02 UTC
PR posted here: https://src.fedoraproject.org/rpms/kmodtool/pull-request/18 That doesn't look the appropriate way to fix this issue. I'm not into bootc, and unsure about why they would run as non-root (even if fake root) in order to install RPM packages at all, breaking assumptions. But if akmods-ostree-post fails, there is no mean for the akmod-foo package to do it's duty. Then it's it sound likes appropriate to error here. It sounds like your LLVM only hide the error without fixing the problem. You might use this workaround: touch /run/ostree-booted Then install akmod-foo, and rm /run/ostree-booted But then akmods will not build and extract the kmod-foo, like expected. (that's why your are using akmods --force in your scripts, which also workarounds the previous bug without fixing it). For info, what is the content of os-release in your bootc ? I just came across this same error when basing my images off of `quay.io/fedora-ostree-desktops/base-atomic`. It seems everything stems from this conditional: https://src.fedoraproject.org/rpms/akmods/blob/3979c172b8067de5246f18cc2be1ddb9c1420f72/f/akmods-ostree-post#_33 The bootc images (correctly) don't have a `/run/ostree-booted` file, but they *do* have `OSTREE_VERSION` in /etc/os-release: ``` bash-5.3# grep OSTREE_VERSION /etc/os-release OSTREE_VERSION='44.20260813.0' ``` So this issue should be fixed by either only relying on the presence of `/run/ostree-booted` to detect true (non-bootc) OSTree systems, or the removal of `OSTREE_VERSION` from `/etc/os-release` in the bootc images. The following is a terrible workaround in the meantime: ``` RUN <<EOF sed -i "/^OSTREE_VERSION='/d" /etc/os-release dnf install akmod-nvidia kernel_version="$(cd /usr/lib/modules && echo *)" akmods --force --kernels "$kernel_version" --kmod nvidia EOF ``` |