Skip weak dependencies during install on UBI
What does this MR do?
Prevents weak dependencies from being installed in the ubi images.
This can be a problem, for example: when a gnutls update in the rhel repros included a recommend dependency on trousers
which brings with it pam,systemd and about 30 other friends.
Note that the problem is resolved when the upstream ubi8 image has been updated.
Related issues
docker run -ti registry.access.redhat.com/ubi8/ubi-minimal:8.7 microdnf update gnutls
(microdnf:1): librhsm-WARNING **: 16:06:11.105: Found 0 entitlement certificates
(microdnf:1): librhsm-WARNING **: 16:06:11.106: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
acl-2.2.53-1.el8.x86_64 ubi-8-baseos-rpms 83.0 kB
cracklib-2.9.6-15.el8.x86_64 ubi-8-baseos-rpms 95.5 kB
cracklib-dicts-2.9.6-15.el8.x86_64 ubi-8-baseos-rpms 4.1 MB
cryptsetup-libs-2.3.7-2.el8.x86_64 ubi-8-baseos-rpms 499.4 kB
dbus-1:1.12.8-23.el8_7.1.x86_64 ubi-8-baseos-rpms 43.1 kB
dbus-common-1:1.12.8-23.el8_7.1.noarch ubi-8-baseos-rpms 47.9 kB
dbus-daemon-1:1.12.8-23.el8_7.1.x86_64 ubi-8-baseos-rpms 246.8 kB
dbus-libs-1:1.12.8-23.el8_7.1.x86_64 ubi-8-baseos-rpms 189.3 kB
dbus-tools-1:1.12.8-23.el8_7.1.x86_64 ubi-8-baseos-rpms 88.3 kB
device-mapper-8:1.02.181-6.el8.x86_64 ubi-8-baseos-rpms 386.5 kB
device-mapper-libs-8:1.02.181-6.el8.x86_64 ubi-8-baseos-rpms 419.7 kB
diffutils-3.6-6.el8.x86_64 ubi-8-baseos-rpms 367.4 kB
elfutils-default-yama-scope-0.187-4.el8.noarch ubi-8-baseos-rpms 52.9 kB
elfutils-libs-0.187-4.el8.x86_64 ubi-8-baseos-rpms 304.1 kB
expat-2.2.5-10.el8_7.1.x86_64 ubi-8-baseos-rpms 116.2 kB
gzip-1.9-13.el8_5.x86_64 ubi-8-baseos-rpms 170.8 kB
kmod-libs-25-19.el8.x86_64 ubi-8-baseos-rpms 70.1 kB
libfdisk-2.32.1-39.el8_7.x86_64 ubi-8-baseos-rpms 258.9 kB
libnsl2-1.2.0-2.20180605git4a062cf.el8.x86_64 ubi-8-baseos-rpms 59.1 kB
libpwquality-1.4.4-5.el8.x86_64 ubi-8-baseos-rpms 109.6 kB
libseccomp-2.5.2-1.el8.x86_64 ubi-8-baseos-rpms 72.9 kB
libsemanage-2.9-9.el8_6.x86_64 ubi-8-baseos-rpms 172.1 kB
libtirpc-1.1.4-8.el8.x86_64 ubi-8-baseos-rpms 115.8 kB
libutempter-1.1.6-14.el8.x86_64 ubi-8-baseos-rpms 32.6 kB
libxkbcommon-0.9.1-1.el8.x86_64 ubi-8-appstream-rpms 118.5 kB
pam-1.3.1-22.el8.x86_64 ubi-8-baseos-rpms 761.0 kB
shadow-utils-2:4.6-17.el8.x86_64 ubi-8-baseos-rpms 1.3 MB
systemd-239-68.el8_7.4.x86_64 ubi-8-baseos-rpms 3.8 MB
systemd-pam-239-68.el8_7.4.x86_64 ubi-8-baseos-rpms 503.8 kB
trousers-0.3.15-1.el8.x86_64 ubi-8-baseos-rpms 156.3 kB
trousers-lib-0.3.15-1.el8.x86_64 ubi-8-baseos-rpms 171.6 kB
util-linux-2.32.1-39.el8_7.x86_64 ubi-8-baseos-rpms 2.6 MB
xkeyboard-config-2.28-1.el8.noarch ubi-8-appstream-rpms 801.0 kB
Upgrading:
gnutls-3.6.16-6.el8_7.x86_64 ubi-8-baseos-rpms 1.0 MB
replacing gnutls-3.6.16-5.el8_6.x86_64
Transaction Summary:
Installing: 33 packages
Reinstalling: 0 packages
Upgrading: 1 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated
Edited by Jason Plum