-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
See:
Packages using alternative are not working well with rpm-ostree based systems right now. |
Thank you for the references. |
fedora-sysv/chkconfig#135 has been merged. I have not checked the implications for existing and new systems yet. |
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. |
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. |
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:
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:
Additional context
As a workaround, one can
mkdir -p /var/lib/alternatives
in Containerfile beforerpm-ostree install
. However, thenostree container commit
will fail due to existence of files in /var... a specific example:This error being similar to #413 , the further workaround is to rm the file.
The text was updated successfully, but these errors were encountered: