-
Notifications
You must be signed in to change notification settings - Fork 37
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
microdnf fails when passing --setopt=tsflags=nodocs #637
Comments
As a possible workaround we could install dnf as the first package and then use that, though this reduces some of the differences between minimal and full. We'd need some indication or a pre-run script as a cekit module to do this though, as cekit won't understand that it begins with package manager A and then switches to B. |
upstream microdnf bug https://bugzilla.redhat.com/show_bug.cgi?id=1769831 |
Without removing the flag it also failed while installing only the dnf package. |
Ah, now I understand. The workaround is still valid, it's just that we cannot work with @luck3y's workaround. One solution would be to add a module that would use microdnf command to install dnf, and not as packages. |
Upstream microdnf issue: rpm-software-management/microdnf#50 |
@goldmann correct, the workaround that Ken suggested will not work. So far the only one that apparently works is removing the nodocs flag. |
I guess we could stop using nodocs and do a post-install "rm -rf /usr/share/doc" or similar |
The :latest ubi-minimal tag will not work with cekit due to cekit/cekit#637 and the underlying microdnf issue https://bugzilla.redhat.com/show_bug.cgi?id=1769831, therefore it's necessary to ensure that the last working tag, 8.0-213, is used. In general it is good practice to use a specific image tag for reproducible builds, so we should continue to explicitly provide the tag in the future.
This was resolved in microdnf at some point; the issue is not present in microdnf-3.4.0-1.el8.x86_64 ( |
Hi,
With microdnf=3.0.1-3.el8 (latest version available in ubi8 right now), microdnf behaves strangely when supplying
--setopt=tsflags=nodocs
, as is the default in the cekit jinja template:This fails builds. One workarounds seem to exist: don't pass
--setopt=tsflags=nodocs
, although that (might) mean that behaviour is different (not sure that microdnf is even honouring this)This might get fixed in microdnf itself, although I haven't filed it there yet. But the lead time on getting that fix deployed would likely be quite long, and rule out us using the ubi8-minimal images for some shorter-term projects. So I'm filing this wondering what you might think about working around it in cekit?
The text was updated successfully, but these errors were encountered: