Get closer to upstream with the ubi image
This commit is contained in:
parent
7c8f50614a
commit
af63f7a1ba
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
%packages --ignoremissing --excludedocs --instLangs=en --nocore --excludeWeakdeps
|
||||||
bash
|
bash
|
||||||
binutils
|
|
||||||
brotli
|
|
||||||
coreutils-single
|
coreutils-single
|
||||||
crypto-policies-scripts
|
crypto-policies-scripts
|
||||||
dmidecode
|
curl-minimal
|
||||||
findutils
|
findutils
|
||||||
|
gdb-gdbserver
|
||||||
glibc-minimal-langpack
|
glibc-minimal-langpack
|
||||||
libcurl
|
gzip
|
||||||
|
libcurl-minimal
|
||||||
systemd
|
systemd
|
||||||
rocky-release
|
rocky-release
|
||||||
rootfiles
|
rootfiles
|
||||||
@ -40,6 +40,7 @@ yum
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
%post --erroronfail --log=/root/anaconda-post.log
|
%post --erroronfail --log=/root/anaconda-post.log
|
||||||
|
set -eux
|
||||||
# container customizations inside the chroot
|
# container customizations inside the chroot
|
||||||
|
|
||||||
# Stay compatible
|
# Stay compatible
|
||||||
@ -69,10 +70,15 @@ systemctl mask \
|
|||||||
systemd-logind.service \
|
systemd-logind.service \
|
||||||
systemd-remount-fs.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
|
# Cleanup the image
|
||||||
rm -f /etc/udev/hwdb.bin
|
rm -f /etc/udev/hwdb.bin
|
||||||
rm -rf /usr/lib/udev/hwdb.d/ \
|
rm -rf /usr/lib/udev/hwdb.d/ \
|
||||||
/boot /var/lib/dnf/history.* \
|
/boot /var/lib/dnf/history.* \
|
||||||
|
/var/cache/* /var/log/* \
|
||||||
/tmp/* /tmp/.* || true
|
/tmp/* /tmp/.* || true
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user