From 0454f1622042b2689bcf6c141ba2485ff0f39a8f Mon Sep 17 00:00:00 2001 From: lumarel Date: Sun, 2 Apr 2023 15:45:56 +0200 Subject: [PATCH] Merge into the combined ks file --- Rocky-8-Container-UBI.ks | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Rocky-8-Container-UBI.ks b/Rocky-8-Container-UBI.ks index 7bff631..e481957 100644 --- a/Rocky-8-Container-UBI.ks +++ b/Rocky-8-Container-UBI.ks @@ -15,7 +15,7 @@ shutdown keyboard us lang en_US.UTF-8 -timezone --isUtc --nontp UTC +timezone --isUtc --nontp Etc/UTC # Disk setup zerombr @@ -31,14 +31,15 @@ dbus-broker-launch --scope=none # Package setup %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 tar @@ -68,6 +69,7 @@ yum %end %post --erroronfail --log=/root/anaconda-post.log +set -eux # container customizations inside the chroot # Stay compatible @@ -97,10 +99,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