From 8857a9ff53c2ebfbe4bdcec37604fdff8678d4c5 Mon Sep 17 00:00:00 2001 From: lumarel Date: Sun, 2 Apr 2023 12:11:02 +0200 Subject: [PATCH] Get closer to upstream with the ubi image --- container/rocky-container-ubi.ks | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/container/rocky-container-ubi.ks b/container/rocky-container-ubi.ks index 582f2a7..58302a8 100644 --- a/container/rocky-container-ubi.ks +++ b/container/rocky-container-ubi.ks @@ -2,14 +2,14 @@ %packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps bash -binutils -brotli coreutils-single crypto-policies-scripts -dmidecode +curl-minimal findutils +gdb-gdbserver glibc-minimal-langpack -libcurl +gzip +libcurl-minimal systemd rocky-release rootfiles @@ -40,6 +40,7 @@ yum %end %post --erroronfail --log=/root/anaconda-post.log +set -eux # container customizations inside the chroot # Stay compatible @@ -69,10 +70,15 @@ systemctl mask \ systemd-logind.service \ systemd-remount-fs.service +# Remove network configuration files leftover from anaconda installation +# https://bugzilla.redhat.com/show_bug.cgi?id=1713089 +rm -f /etc/sysconfig/network-scripts/ifcfg-* + # Cleanup the image rm -f /etc/udev/hwdb.bin rm -rf /usr/lib/udev/hwdb.d/ \ /boot /var/lib/dnf/history.* \ + /var/cache/* /var/log/* \ /tmp/* /tmp/.* || true %end