Closed Conan-Kudo closed 6 months ago
I ran into this while testing the KIWI descriptions of the fedora-toolbox
image.
The Kickstart equivalent of the fedora-toolbox
images uses the -foo
notation a lot, and, sometimes, it's more important than merely fine tuning the package set to balance features with size. eg., to make DNS resolution to work within the container across hosts that use and don't systemd-resolved(8)
.
One of the weak dependencies of the systemd
RPM is systemd-resolved
, and having it installed within the container messes up /etc/resolv.conf
in a way that breaks DNS resolution inside the container on hosts that don't use systemd-resolved(8)
. One solution is to filter out the systemd-resolved
RPM.
The other solution is to make the toolbox(1)
binary more resilient. However, like anything with two moving parts, it's always better to fix both to maximize user satisfaction.
A potential workaround for now would be to use the uninstall phase to clean out anything you don't want.
A potential workaround for now would be to use the uninstall phase to clean out anything you don't want.
This works for now.
It's worth noting that the outcome of not installing a package is different from installing it and then uninstalling. In the case of the systemd-resolved
, if it's never installed then /etc/resolv.conf
is a regular file, but if it's installed and then removed then there's no /etc/resolv.conf
at all. This doesn't seem to break anything right now, but who knows what will happen in the future.
Is this really fixed?
The KIWI descriptions of the fedora-toolbox
image have:
<packages type="bootstrap" patternType="plusRecommended" profiles="Container-Toolbox">
<ignore name="pinentry"/>
...
... but I still see pinentry
getting pulled into the image, which is latter uninstalled by the above workaround.
Hmm, no it's not fixed, my bad
Just checked the images built with KIWI 10.0.11, and I can confirm that this is indeed fixed now. Thanks everybody!
Problem description
When trying to declare a package to be excluded at bootstrap phase, kiwi ignores it and does not pass it on to the package manager.
Expected behavior
When adding an ignore stanza in a bootstrap package install section, it should take effect.
Steps to reproduce the behavior
Add an "ignore" stanza to the bootstrap package install section of a description.
One such example can be applied to fedora-kiwi-descriptions:
OS and Software information