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

how to workaround rpm dependency? #468

Open
akdev1l opened this issue Apr 24, 2023 · 5 comments
Open

how to workaround rpm dependency? #468

akdev1l opened this issue Apr 24, 2023 · 5 comments
Labels
enhancement New feature or request triaged This issue was triaged

Comments

@akdev1l
Copy link

akdev1l commented Apr 24, 2023

Hi bootupd team,

I love the idea behind bootc so I've been trying to create a bootc image based on archlinux.

As part of creating a bootc image bootupd backend generate-metadata is called but this fails on arch linux as there is not rpm binary.

Is there a way I can work around this dependency? I am happy to hack around this in my image as it is just a proof of concept but not sure what to do

Also the readme suggest bootupd should be OS agnostic but looking for rpm means it is not really agnostic :-( are there plans to remove this dependency?

@cgwalters
Copy link
Member

Absolutely, we can support other backends here in bootupd. It should be relatively straightforward to do. Do you know any Rust?

@cgwalters cgwalters added enhancement New feature or request triaged This issue was triaged labels May 5, 2023
@akdev1l
Copy link
Author

akdev1l commented May 6, 2023

I know a little bit of rust, I can probably try and get it working on arch linux if you can provide some guidance on:

  1. what is bootupd expecting from the package manager?
  2. what is the purpose of the metadata being generated?
  3. how does it relate to the grub configuration?

we were able to hack around this dependency by reusing generated files from fedora but naturally the resulting image couldn't boot (I think because the metadata pointed to Fedora-specific grub configuration?)

@cgwalters
Copy link
Member

We basically just need version information. I think instead of hardcoding knowledge of rpm in bootupd, we could try having an external script that can be provided by the OS output it?

@bigpod98

This comment was marked as off-topic.

@symbioquine
Copy link

@cgwalters I'm curious about this too. Can you provide a bit more detail about what you mean when you say "We basically just need version information"?

Specifically, what I'm wondering is what it would take to boot existing container images (say Arch Linux) without any of the package layering stuff? I don't mind needing to build a custom image in order to install things. It looks like someone has actually already been trying to get that working. Maybe you can comment about whether that would be expected to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged This issue was triaged
Projects
None yet
Development

No branches or pull requests

4 participants