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

RPMs using alternatives do not install properly in rpm-ostree container #430

Closed
bsherman opened this issue Mar 11, 2023 · 5 comments
Closed
Labels
bug Something isn't working containers Related to containers or ostree native containers f39 Related to Fedora 39 f40 Related to Fedora 40 upstream Issue reported, fixed or related to upstream projects

Comments

@bsherman
Copy link

Describe the bug
rpm-ostree install of an RPM which uses the alternatives system (eg, netcat) fails when run in a Containerfile.

To Reproduce
Given a simple Containerfile:

FROM quay.io/fedora-ostree-desktops/silverblue:37.20230311.0.09be88fd
RUN rpm-ostree install netcat && ls -l /usr/bin/nc

Run build: podman build -f Containerfile --tag test-netcat

rpm-ostree install will log an informative message:
admindir /var/lib/alternatives invalid

And the example will fail with /usr/bin/nc not found.

Expected behavior

RPMs depending on alternatives should succeed when built via container rpm-ostree install.

OS version:

quay.io/fedora-ostree-desktops/silverblue:37.20230311.0.09be88fd

Additional context

As a workaround, one can mkdir -p /var/lib/alternatives in Containerfile before rpm-ostree install. However, then ostree container commit will fail due to existence of files in /var... a specific example:

Found file: "var/lib/alternatives/nc"

This error being similar to #413 , the further workaround is to rm the file.

@bsherman bsherman added the bug Something isn't working label Mar 11, 2023
@travier travier added the containers Related to containers or ostree native containers label Mar 13, 2023
@travier
Copy link
Member

travier commented Mar 13, 2023

@travier travier added f37 Related to Fedora 37 upstream Issue reported, fixed or related to upstream projects labels Mar 13, 2023
@bsherman
Copy link
Author

Thank you for the references.

@travier travier added f38 Related to Fedora 38 f39 Related to Fedora 39 f40 Related to Fedora 40 and removed f37 Related to Fedora 37 labels Nov 24, 2023
simeon-walker added a commit to simeon-walker/ublue that referenced this issue Jan 7, 2024
@travier travier removed the f38 Related to Fedora 38 label Apr 29, 2024
@travier
Copy link
Member

travier commented Aug 20, 2024

fedora-sysv/chkconfig#135 has been merged. I have not checked the implications for existing and new systems yet.

@travier
Copy link
Member

travier commented Aug 20, 2024

This is now tracked in https://gitlab.com/fedora/bootc/tracker/-/issues/7 for the bootc side of things and https://gitlab.com/fedora/ostree/sig/-/issues/51 for the Atomic Desktops part.

@travier travier closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@travier
Copy link
Member

travier commented Oct 24, 2024

This will be fixed in F41. See updates in: https://gitlab.com/fedora/ostree/sig/-/issues/51. There is not automatic migration right now for existing systems but this should be reasonably easy to do and test. Documentation PRs welcomed.

@travier travier closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working containers Related to containers or ostree native containers f39 Related to Fedora 39 f40 Related to Fedora 40 upstream Issue reported, fixed or related to upstream projects
Projects
None yet
Development

No branches or pull requests

2 participants