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

dracut error on kernel replace #119

Closed
antuan1996 opened this issue Mar 13, 2024 · 6 comments
Closed

dracut error on kernel replace #119

antuan1996 opened this issue Mar 13, 2024 · 6 comments
Assignees
Labels
type: bug Something isn't working.
Milestone

Comments

@antuan1996
Copy link

I try to replace the default kernel in my image. I've set up adding new repos and launch of custom scripts using the 'script' module in my recipe.
If launch these commands

rpm-ostree cliwrap install-to-root / && \
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-cachyos 

I get the next error in action logs:
error: rpm-ostree kernel-install wrapper: Running dracut: Invalid cross-device link (os error 18)

The pipeline does not fail, but if I try to boot from the built image it will stuck on boot screen.

@fiftydinar
Copy link
Contributor

fiftydinar commented Mar 14, 2024

Try to use rpm-ostree override replace method instead:

    rpm-ostree cliwrap install-to-root / && \
    rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra

Take a note that with custom kernel, you loose Secure Boot support.

@antuan1996
Copy link
Author

I use the same commands in 'startingpoint' based repository and it works fine.
I believe the error message Invalid cross-device link implies something is wrong in mounting or path mapping settings.

@gmpinder
Copy link
Member

Mind posting a link to your repo so I can test it later?

@antuan1996
Copy link
Author

Here is my repository based on new template: https://github.com/antuan1996/formile-cachyos-ublue
Build logs: link

@gmpinder
Copy link
Member

So I think we may have a fix that we pushed to the main branch. You can try it out in your Github action by setting use_unstable_cli to true.

@gmpinder gmpinder self-assigned this Mar 17, 2024
@gmpinder gmpinder added the type: bug Something isn't working. label Mar 17, 2024
@gmpinder gmpinder added this to the v0.8.3 milestone Mar 17, 2024
@antuan1996
Copy link
Author

I confirm the problem is gone. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

3 participants