Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider excluding dracut-config-rescue in ostree-based images #624

Open
achilleas-k opened this issue Apr 22, 2024 · 0 comments
Open

Consider excluding dracut-config-rescue in ostree-based images #624

achilleas-k opened this issue Apr 22, 2024 · 0 comments

Comments

@achilleas-k
Copy link
Member

achilleas-k commented Apr 22, 2024

Installing dracut-config-rescue will inevitably generate a secondary rescue kernel, which will make rpm-ostree compose fail with something like:

Preparing kernel
error: Finalizing rootfs: During kernel processing: Multiple vmlinuz- in usr/lib/ostree-boot, occurrences 'usr/lib/ostree-boot/vmlinuz-5.14.0-427.13.1.el9_4.aarch64' and 'usr/lib/ostree-boot/vmlinuz-0-rescue-ffffffffffffffffffffffffffffffff'
Traceback (most recent call last):
  File "/run/osbuild/bin/org.osbuild.ostree.preptree", line 176, in <module>
    r = main(args["tree"], args["options"])
  File "/run/osbuild/bin/org.osbuild.ostree.preptree", line 169, in main
    subprocess.run(["rpm-ostree", "compose", "postprocess",
  File "/usr/lib64/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['rpm-ostree', 'compose', 'postprocess', '/run/osbuild/tree', '/tmp/tmpx7i5hvm5.json']' returned non-zero exit status 1.

One solution would be to disable dracut in the rpm stage (which is an option that exists in osbuild's org.osbuild.rpm stage).
Alternatively, we can exclude dracut-config-rescue in ostree-based builds, but our excludes aren't considered when depsolving user packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant