Closed bsherman closed 1 month ago
See:
Packages using alternative are not working well with rpm-ostree based systems right now.
Thank you for the references.
https://github.com/fedora-sysv/chkconfig/pull/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.
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.