From 5bae234647698ed737cb04f83b3ac393c5b5b9900a4b1f1640d660155eba1c61 Mon Sep 17 00:00:00 2001 From: Antonio Alonso Alarcon Date: Thu, 11 Dec 2025 10:39:20 +0100 Subject: [PATCH] Updates sriov-network-operator-config-daemon-image's Dockerfile to include blkid bin and configure it properly --- .../Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sriov-network-operator-config-daemon-image/Dockerfile b/sriov-network-operator-config-daemon-image/Dockerfile index 3282202..100e02d 100644 --- a/sriov-network-operator-config-daemon-image/Dockerfile +++ b/sriov-network-operator-config-daemon-image/Dockerfile @@ -10,6 +10,22 @@ RUN zypper --installroot /installroot --non-interactive install --no-recommends zypper -n clean; \ rm -rf /var/log/* +# Adding "util-linux" package; it provides the blkid command required in sriov-network-operator-config-daemon image (platform=openstack); +# see https://jira.suse.com/browse/SEL3-47 and related https://bugzilla.suse.com/show_bug.cgi?id=1247914 +# +# CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC var setting is required when zypper-installing the "util-linux" package; +# see https://bugzilla.suse.com/show_bug.cgi?id=1219736#c54 +# +# Finally, to avoid blkid waiting on udev (which is not running in the container image), a proper blkid.conf file is needed; +# see https://bugzilla.suse.com/show_bug.cgi?id=1247914 +# +RUN export CHKSTAT_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \ + export BLKID_CONF_TMP="/installroot/etc/blkid.conf"; \ + zypper --installroot /installroot --non-interactive install --no-recommends util-linux; \ + zypper -n clean; \ + rm -rf /var/log/*; \ + [ -e "${BLKID_CONF_TMP}" ] && sed -i -e 's/^EVALUATE=.*/EVALUATE=scan/g' ${BLKID_CONF_TMP} || echo "EVALUATE=scan" > ${BLKID_CONF_TMP} + FROM micro AS final # Define labels according to https://en.opensuse.org/Building_derived_containers # labelprefix=com.suse.application.sriov-network-config-daemon -- 2.51.1