2018-06-18 18:56:22 +00:00
|
|
|
## lorax template file: cleanup for the ramdisk (runtime image)
|
2021-05-05 19:05:23 +00:00
|
|
|
<%page args="libdir, branding, root"/>
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## remove the sources
|
|
|
|
remove usr/share/i18n
|
|
|
|
|
|
|
|
## not required packages installed as dependencies
|
|
|
|
## perl is needed on s390x
|
2023-06-09 13:21:30 +00:00
|
|
|
## perl needed for powerpc-utils
|
2018-06-18 18:56:22 +00:00
|
|
|
## perl is needed by /usr/bin/rxe_cfg from libibverbs
|
|
|
|
|
|
|
|
## we don't create new initramfs/bootloader conf inside anaconda
|
|
|
|
## (that happens inside the target system after we install dracut/grubby)
|
|
|
|
removepkg dracut-network grubby anaconda-dracut
|
|
|
|
## In order to execute the /usr move on upgrades we need convertfs from dracut
|
|
|
|
## We also need dracut-shutdown.service and dracut-initramfs-restore to reboot
|
|
|
|
removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh \
|
|
|
|
/usr/lib/dracut/modules.d/99base/dracut-lib.sh \
|
2020-02-21 20:27:11 +00:00
|
|
|
/usr/lib/systemd/* /usr/lib/dracut/modules.d/98dracut-systemd/*.service \
|
2018-06-18 18:56:22 +00:00
|
|
|
/usr/lib/dracut/dracut-initramfs-restore
|
|
|
|
## we don't run SELinux (not in enforcing, anyway)
|
2023-06-09 13:21:30 +00:00
|
|
|
removepkg selinux-policy libselinux-utils
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## selinux checks for the /etc/selinux/config file's existance
|
|
|
|
## The removepkg above removes it, create an empty one. See rhbz#1243168
|
|
|
|
append etc/selinux/config ""
|
|
|
|
|
|
|
|
## keep enough of shadow-utils to create accounts
|
|
|
|
removefrom shadow-utils --allbut /usr/bin/chage /usr/sbin/chpasswd \
|
2023-06-09 13:21:30 +00:00
|
|
|
/usr/sbin/groupadd /usr/sbin/useradd
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## no services to turn on/off (keep the /etc/init.d link though)
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom initscripts /usr/sbin/* /usr/share/locale/* /usr/share/doc/* /usr/share/man/*
|
|
|
|
|
2018-06-18 18:56:22 +00:00
|
|
|
## no storage device monitoring
|
2023-06-09 13:21:30 +00:00
|
|
|
removepkg device-mapper-event
|
2018-06-18 18:56:22 +00:00
|
|
|
## logrotate isn't useful in anaconda
|
|
|
|
remove /etc/logrotate.d
|
|
|
|
## anaconda needs this to do media check
|
|
|
|
removefrom isomd5sum --allbut /usr/bin/checkisomd5
|
|
|
|
|
2023-06-09 13:21:30 +00:00
|
|
|
## there's no need for a bunch of zsh files without zsh,
|
|
|
|
## systemd-analyze is quite large and not essential
|
|
|
|
removefrom systemd /usr/bin/systemd-analyze /usr/share/zsh/site-functions/*
|
|
|
|
|
|
|
|
## we only need syslinux to make the installer image bootable, we don't
|
|
|
|
## run anything from it that uses mtools, and that's the only thing
|
|
|
|
## that pulls in glibc-gconv-extra
|
|
|
|
removepkg mtools glibc-gconv-extra
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## various other things we remove to save space
|
2023-06-09 13:21:30 +00:00
|
|
|
removepkg diffutils file
|
|
|
|
removepkg lvm2-libs
|
|
|
|
removepkg mobile-broadband-provider-info
|
|
|
|
removepkg rmt rpcbind squashfs-tools
|
2024-05-27 12:50:20 +00:00
|
|
|
removepkg xml-common
|
2023-06-09 13:21:30 +00:00
|
|
|
removepkg mkfontscale fonttosfnt
|
|
|
|
# do not remove this, required for ppc64le and s390x !!!
|
|
|
|
removepkg ncurses
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## other removals
|
|
|
|
remove /home /media /opt /srv /tmp/*
|
|
|
|
remove /usr/etc /usr/games /usr/local /usr/tmp
|
|
|
|
remove /usr/share/doc /usr/share/info /usr/share/man /usr/share/gnome
|
|
|
|
remove /usr/share/mime/application /usr/share/mime/audio /usr/share/mime/image
|
|
|
|
remove /usr/share/mime/inode /usr/share/mime/message /usr/share/mime/model
|
|
|
|
remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text
|
|
|
|
remove /usr/share/mime/video /usr/share/mime/x-content /usr/share/mime/x-epoc
|
|
|
|
remove /var/db /var/games /var/tmp /var/yp /var/nis /var/opt /var/local
|
|
|
|
remove /var/mail /var/spool /var/preserve /var/report
|
2023-06-09 13:21:30 +00:00
|
|
|
remove /usr/lib/sysimage/rpm/* /var/lib/rpm/* /var/lib/yum /var/lib/dnf
|
2018-06-18 18:56:22 +00:00
|
|
|
## clean up the files created by various '> /dev/null's
|
|
|
|
remove /dev/*
|
|
|
|
|
|
|
|
## icons cache
|
|
|
|
remove /usr/share/icons/*/icon-theme.cache
|
|
|
|
|
|
|
|
## clean up kernel modules
|
2023-06-09 13:21:30 +00:00
|
|
|
removekmod sound drivers/media drivers/hwmon drivers/iio \
|
2018-06-18 18:56:22 +00:00
|
|
|
net/atm net/bluetooth net/sched net/sctp \
|
|
|
|
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6 \
|
|
|
|
drivers/watchdog drivers/rtc drivers/input/joystick \
|
|
|
|
drivers/bluetooth drivers/edac drivers/staging \
|
|
|
|
drivers/usb/serial drivers/usb/host drivers/usb/misc \
|
|
|
|
fs/ocfs2 fs/ceph fs/nfsd fs/ubifs fs/nilfs2 \
|
|
|
|
arch/x86/kvm
|
|
|
|
## Need to keep virtio_console.ko and ipmi stuff in drivers/char
|
|
|
|
## Also keep virtio-rng so that the installer can get sufficient randomness for
|
2023-06-09 13:21:30 +00:00
|
|
|
## LUKS setup. As of 2020-09 this is not built as a module, but keep it in here
|
|
|
|
## in case that changes again
|
2018-06-18 18:56:22 +00:00
|
|
|
removekmod drivers/char --allbut virtio_console hw_random \
|
2024-07-17 21:06:16 +00:00
|
|
|
virtio-rng ipmi hmcdrv nvram
|
2024-07-17 21:00:21 +00:00
|
|
|
removekmod drivers/hid --allbut hid-logitech-dj hid-logitech-hidpp hid-multitouch
|
2023-06-09 13:21:30 +00:00
|
|
|
|
|
|
|
## As of 2020-09 most of this are built-in too, but again, keep them listed
|
2018-06-18 18:56:22 +00:00
|
|
|
removekmod drivers/video --allbut hyperv_fb syscopyarea sysfillrect sysimgblt fb_sys_fops
|
|
|
|
remove lib/modules/*/{build,source,*.map}
|
|
|
|
## NOTE: depmod gets re-run after cleanup finishes
|
|
|
|
|
|
|
|
## remove unused themes, theme engines, icons, etc.
|
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*/printbackends/*
|
|
|
|
removefrom gtk3 /usr/share/themes/*
|
|
|
|
|
|
|
|
## filesystem tools
|
|
|
|
removefrom e2fsprogs /usr/share/locale/*
|
|
|
|
removefrom xfsprogs /usr/share/locale/* /usr/share/doc/* /usr/share/man/*
|
|
|
|
removefrom xfsdump --allbut /usr/sbin/*
|
|
|
|
|
|
|
|
## other package specific removals
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom gsettings-desktop-schemas /usr/share/locale/*
|
|
|
|
removefrom NetworkManager-libnm /usr/share/locale/*/NetworkManager.mo
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom nm-connection-editor /usr/share/applications/*
|
|
|
|
removefrom atk /usr/share/locale/*
|
|
|
|
removefrom bash /etc/* /usr/bin/bashbug* /usr/share/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom bind-utils /usr/bin/host /usr/bin/nsupdate
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom ca-certificates /etc/pki/java/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom ca-certificates /etc/pki/tls/certs/ca-bundle.trust.crt
|
|
|
|
removefrom coreutils /usr/bin/link /usr/bin/nice /usr/bin/stty /usr/bin/unlink
|
|
|
|
removefrom coreutils /usr/bin/[ /usr/bin/base64 /usr/bin/chcon
|
|
|
|
removefrom coreutils /usr/bin/cksum /usr/bin/csplit
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom coreutils /usr/bin/dir /usr/bin/dircolors
|
|
|
|
removefrom coreutils /usr/bin/expand /usr/bin/factor
|
|
|
|
removefrom coreutils /usr/bin/fold /usr/bin/groups /usr/bin/hostid
|
|
|
|
removefrom coreutils /usr/bin/install /usr/bin/join /usr/bin/logname
|
|
|
|
removefrom coreutils /usr/bin/mkfifo /usr/bin/nl /usr/bin/nohup /usr/bin/nproc
|
|
|
|
removefrom coreutils /usr/bin/pathchk
|
|
|
|
removefrom coreutils /usr/bin/pinky /usr/bin/pr /usr/bin/printenv
|
|
|
|
removefrom coreutils /usr/bin/printf /usr/bin/ptx /usr/bin/runcon
|
|
|
|
removefrom coreutils /usr/bin/sha224sum /usr/bin/sha384sum
|
|
|
|
removefrom coreutils /usr/bin/sha512sum /usr/bin/shuf /usr/bin/stat
|
|
|
|
removefrom coreutils /usr/bin/stdbuf /usr/bin/sum /usr/bin/test
|
|
|
|
removefrom coreutils /usr/bin/timeout /usr/bin/truncate /usr/bin/tsort
|
|
|
|
removefrom coreutils /usr/bin/unexpand /usr/bin/users /usr/bin/vdir
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom coreutils /usr/bin/who /usr/bin/whoami /usr/bin/yes
|
|
|
|
removefrom coreutils-common /etc/* /usr/share/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom cpio /usr/share/*
|
|
|
|
removefrom cracklib /usr/sbin/*
|
|
|
|
removefrom cracklib-dicts /usr/${libdir}/* /usr/sbin/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom cryptsetup /usr/share/*
|
|
|
|
removefrom cryptsetup-libs /usr/share/locale/*
|
|
|
|
removefrom cyrus-sasl-lib /usr/sbin/* /usr/bin/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom dbus-x11 /etc/X11/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom dnf /usr/share/locale/*
|
|
|
|
removefrom dump /etc/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom elfutils-libelf /usr/share/locale/*
|
|
|
|
removefrom expat /usr/bin/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom fcoe-utils /usr/libexec/fcoe/dcbcheck.sh
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom fcoe-utils /usr/libexec/fcoe/fcc.sh /usr/libexec/fcoe/fcoe-setup.sh
|
|
|
|
removefrom fcoe-utils /usr/libexec/fcoe/fcoedump.sh /usr/sbin/fcnsq
|
|
|
|
removefrom fcoe-utils /usr/sbin/fcoeadm /usr/sbin/fcping /usr/sbin/fcrls
|
|
|
|
removefrom file-libs /usr/share/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom findutils /usr/share/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom fontconfig /usr/bin/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom gawk /usr/libexec/* /usr/share/*
|
|
|
|
removefrom gdb /usr/share/* /usr/include/*
|
|
|
|
removefrom gdb-headless /usr/share/* /etc/gdbinit*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom gdk-pixbuf2 /usr/share/locale*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom glib2 /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom glibc /etc/gai.conf /etc/rpc
|
|
|
|
removefrom glibc /${libdir}/libBrokenLocale*
|
|
|
|
removefrom glibc /${libdir}/libanl*
|
|
|
|
removefrom glibc /${libdir}/libnss_compat*
|
2018-06-18 18:56:22 +00:00
|
|
|
# python-pyudev uses ctypes.util.find_library, which uses /sbin/ldconfig
|
|
|
|
removefrom glibc /usr/libexec/* /usr/sbin/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom glibc-common /usr/bin/gencat
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom glibc-common /usr/bin/getent
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom glibc-common /usr/bin/locale /usr/bin/sprof
|
2018-06-18 18:56:22 +00:00
|
|
|
# NB: we keep /usr/bin/localedef so anaconda can inspect payload locale info
|
|
|
|
removefrom glibc-common /usr/bin/tzselect
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom glibc-common /usr/sbin/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom gnutls /usr/share/locale/*
|
2023-02-09 02:38:23 +00:00
|
|
|
removefrom google-noto-sans-cjk-fonts /usr/share/fonts/google-noto-sans-cjk-fonts/NotoSansCJK-{Black,Bold,*Light,Medium,Thin}.ttc
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom google-noto-sans-vf-fonts /usr/share/fonts/google-noto-vf/NotoSans-Italic-VF.ttf
|
2024-04-18 07:37:02 +00:00
|
|
|
removefrom google-noto-serif-vf-fonts /usr/share/fonts/google-noto-vf/NotoSerif*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom grep /etc/* /usr/share/locale/*
|
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom gtk4 /usr/${libdir}/gtk-4.0/*
|
|
|
|
removefrom guile22 /usr/${libdir}/guile/2.2/ccache*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom gzip /usr/bin/{gzexe,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew}
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom hwdata /usr/share/hwdata/oui.txt /usr/share/hwdata/pnp.ids
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom iproute --allbut /usr/sbin/{ip,routef,routel,rtpr}
|
|
|
|
removefrom kbd --allbut */bin/{dumpkeys,kbd_mode,loadkeys,setfont,unicode_*,chvt}
|
|
|
|
removefrom less /etc/*
|
|
|
|
removefrom libX11-common /usr/share/X11/XErrorDB
|
|
|
|
removefrom libcanberra /usr/${libdir}/libcanberra-*
|
|
|
|
removefrom libcanberra-gtk3 /usr/bin/*
|
|
|
|
removefrom libcap /usr/sbin/*
|
|
|
|
removefrom libconfig /usr/${libdir}/libconfig++*
|
2024-04-18 07:37:02 +00:00
|
|
|
removefrom liberation-sans-fonts /usr/share/fonts/liberation-sans/LiberationSans-{Bold*,Italic}.ttf
|
|
|
|
removefrom liberation-serif-fonts /usr/share/fonts/liberation-serif/*
|
|
|
|
removefrom liberation-mono-fonts /usr/share/fonts/liberation-mono/LiberationMono-{Bold*,Italic}.ttf
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom libgpg-error /usr/bin/* /usr/share/locale/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom libibverbs /usr/${libdir}/libmlx4*
|
|
|
|
removefrom libidn2 /usr/share/locale/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom libnotify /usr/bin/*
|
|
|
|
removefrom libsemanage /etc/selinux/*
|
|
|
|
removefrom libstdc++ /usr/share/*
|
|
|
|
removefrom libxml2 /usr/bin/*
|
2024-06-22 00:12:07 +00:00
|
|
|
removefrom brcmfmac-firmware /usr/lib/firmware/brcm/BCM-*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom linux-firmware /usr/lib/firmware/ttusb-budget/dspbootcode.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/emi26/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/emi62/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/cpia2/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/dabusb/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/vicam/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/dsp56k/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/sun/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/usbdux*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/f2255usb.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/TDA7706*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/tlg2300_firmware.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/s5p-mfc*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/go7007/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/intel/IntcSST2.bin*
|
2024-06-22 00:05:11 +00:00
|
|
|
removefrom qcom-firmware /usr/lib/firmware/qcom/apq8096/*
|
|
|
|
removefrom qcom-firmware /usr/lib/firmware/qcom/sdm845/*
|
|
|
|
removefrom qcom-firmware /usr/lib/firmware/qcom/sm8250/*
|
|
|
|
removefrom qcom-firmware /usr/lib/firmware/qcom/venus*/*
|
|
|
|
removefrom qcom-firmware /usr/lib/firmware/qcom/vpu*/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom linux-firmware /usr/lib/firmware/meson/vdec/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/phanfw.bin*
|
|
|
|
## these are for SoCs used in Chromebooks, our kernel does not build the drivers
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/mediatek/mt81*/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/mediatek/sof/*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/mediatek/sof-tplg/*
|
|
|
|
## these are old versions that current qed driver will never load
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.10.9.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.10.9.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.14.6.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.18.9.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.20.0.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.30.12.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.33.12.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.37.7.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values-8.40.33.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.10.10.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.10.5.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.15.3.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.20.0.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.33.1.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.33.11.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.37.2.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.37.7.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.4.2.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.42.2.0.bin*
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/qed/qed_init_values_zipped-8.7.3.0.bin*
|
|
|
|
%if basearch != "aarch64":
|
|
|
|
removefrom linux-firmware /usr/lib/firmware/dpaa2/*
|
|
|
|
%endif
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom lldpad /etc/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom mdadm /etc/* /usr/lib/systemd/system/mdmonitor*
|
|
|
|
## gallium-pipe stuff is for compute (opencl), not needed for video
|
|
|
|
removefrom mesa-dri-drivers /usr/${libdir}/dri/*_video.so /usr/lib64/gallium-pipe/*
|
|
|
|
removefrom mt-st /usr/sbin/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom mtools /etc/*
|
|
|
|
removefrom ncurses-libs /usr/${libdir}/libform*
|
2023-06-09 13:21:30 +00:00
|
|
|
## libmenu.so is needed by lp_diag binary from ppc64-diag which is a PowerPC specific package
|
|
|
|
%if basearch != "ppc64le":
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom ncurses-libs /usr/${libdir}/libmenu*
|
|
|
|
%endif
|
|
|
|
removefrom ncurses-libs /usr/${libdir}/libpanel.* /usr/${libdir}/libtic*
|
|
|
|
removefrom net-tools */bin/netstat */sbin/ether-wake */sbin/ipmaddr
|
|
|
|
removefrom net-tools */sbin/iptunnel */sbin/mii-diag */sbin/mii-tool
|
|
|
|
removefrom net-tools */sbin/nameif */sbin/plipconfig */sbin/slattach
|
|
|
|
removefrom net-tools /usr/share/locale/*
|
|
|
|
removefrom nfs-utils /etc/nfsmount.conf
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom nfs-utils /usr/lib/systemd/system/*
|
|
|
|
removefrom nfs-utils /sbin/rpc.statd /usr/sbin/exportfs
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom nfs-utils /usr/sbin/mountstats /usr/sbin/nfsiostat
|
|
|
|
removefrom nfs-utils /usr/sbin/nfsstat /usr/sbin/rpc.gssd /usr/sbin/rpc.idmapd
|
|
|
|
removefrom nfs-utils /usr/sbin/rpc.mountd /usr/sbin/rpc.nfsd
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom nfs-utils /usr/sbin/rpcdebug
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom nfs-utils /usr/sbin/showmount /usr/sbin/sm-notify
|
|
|
|
removefrom nfs-utils /usr/sbin/start-statd /var/lib/nfs/etab
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom nfs-utils /var/lib/nfs/rmtab /var/lib/nfs/statd/state
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom nss-softokn /usr/${libdir}/nss/*
|
2020-11-30 10:35:59 +00:00
|
|
|
removefrom openldap /etc/openldap/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom openssh /usr/libexec/*
|
|
|
|
removefrom openssh-clients /etc/ssh/* /usr/bin/ssh-*
|
|
|
|
removefrom openssh-clients /usr/libexec/*
|
|
|
|
removefrom openssh-server /etc/ssh/* /usr/libexec/openssh/sftp-server
|
2024-04-16 16:32:30 +00:00
|
|
|
removefrom pam /usr/share/locale/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom policycoreutils /etc/* /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom polkit /usr/bin/*
|
|
|
|
removefrom popt /usr/share/locale/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom procps-ng /usr/bin/free /usr/bin/pgrep /usr/bin/pkill
|
|
|
|
removefrom procps-ng /usr/bin/pmap /usr/bin/pwdx /usr/bin/skill /usr/bin/slabtop
|
|
|
|
removefrom procps-ng /usr/bin/snice /usr/bin/tload /usr/bin/uptime
|
|
|
|
removefrom procps-ng /usr/bin/vmstat /usr/bin/w /usr/bin/watch
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom psmisc /usr/share/locale/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom python3-kickstart /usr/lib/python*/site-packages/pykickstart/locale/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom readline /usr/${libdir}/libhistory*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom rdma-core /etc/rdma/mlx4.conf
|
|
|
|
removefrom rpm /usr/bin/* /usr/share/locale/*
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom rsync /etc/*
|
|
|
|
removefrom sed /usr/share/locale/*
|
2024-04-18 07:37:02 +00:00
|
|
|
removefrom sil-padauk-fonts /usr/share/fonts/sil-padauk-fonts/Padauk-Bold.ttf
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom smartmontools /etc/* /usr/sbin/smartd
|
|
|
|
removefrom smartmontools /usr/sbin/update-smart-drivedb
|
|
|
|
removefrom smartmontools /usr/share/smartmontools/*
|
|
|
|
removefrom tar /usr/share/locale/*
|
|
|
|
removefrom usbutils /usr/bin/*
|
|
|
|
removefrom util-linux --allbut \
|
2023-06-09 13:21:30 +00:00
|
|
|
/usr/bin/{chmem,eject,getopt,hexdump,login,lscpu,lsmem,lsblk,setpriv} \
|
|
|
|
/etc/pam.d/login /etc/pam.d/remote \
|
|
|
|
/usr/sbin/{clock,fdisk,fsfreeze,fstrim,hwclock,nologin,sfdisk,swaplabel,wipefs,zramctl}
|
|
|
|
removefrom util-linux-core --allbut \
|
|
|
|
/usr/bin/{dmesg,findmnt,flock,kill,logger,more,mount,mountpoint,umount,unshare} \
|
|
|
|
/etc/mtab \
|
|
|
|
/usr/sbin/{agetty,blkid,blockdev,fsck,losetup,mkswap,partx,swapoff,swapon}
|
2018-06-18 18:56:22 +00:00
|
|
|
removefrom volume_key-libs /usr/share/locale/*
|
2024-07-22 20:28:14 +00:00
|
|
|
removefrom wget /etc/* /usr/share/locale/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom wpa_supplicant /usr/sbin/eapol_test
|
|
|
|
removefrom yelp /usr/share/yelp/mathjax*
|
2021-05-05 19:05:23 +00:00
|
|
|
|
|
|
|
%if branding.release:
|
2021-05-10 23:45:54 +00:00
|
|
|
removefrom ${branding.logos} /usr/share/plymouth/*
|
|
|
|
removefrom ${branding.logos} /etc/*
|
|
|
|
removefrom ${branding.logos} /usr/share/icons/{Bluecurve,oxygen}/*
|
2023-06-09 13:21:30 +00:00
|
|
|
removefrom ${branding.logos} /usr/share/{kde4,pixmaps}/*
|
2021-05-05 19:05:23 +00:00
|
|
|
%endif
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## cleanup /boot/ leaving vmlinuz, and .*hmac files
|
|
|
|
runcmd chroot ${root} find /boot \! -name "vmlinuz*" \
|
|
|
|
-and \! -name ".vmlinuz*" \
|
|
|
|
-and \! -name boot -delete
|
|
|
|
|
|
|
|
## remove any broken links in /etc or /usr
|
|
|
|
## (broken systemd service links lead to confusing noise at boot)
|
|
|
|
## NOTE: not checking /var because we want to keep /var/run
|
|
|
|
## NOTE: Excluding /etc/mtab which links to /proc/self/mounts for systemd
|
|
|
|
runcmd chroot ${root} find -L /etc /usr -xdev -type l -and \! -name "mtab" \
|
|
|
|
-printf "removing broken symbolic link %p -> %l\n" -delete
|
|
|
|
|
2023-06-09 13:21:30 +00:00
|
|
|
## Remove compiled python files, they are recreated as needed anyway
|
|
|
|
runcmd find ${root} -name "*.pyo" -type f -delete
|
|
|
|
runcmd find ${root} -name "*.pyc" -type f -delete
|
|
|
|
|
2018-06-18 18:56:22 +00:00
|
|
|
## Clean up some of the mess pulled in by webkitgtk via yelp
|
|
|
|
## libwebkit2gtk links to a handful of libraries in gstreamer and
|
|
|
|
## gstreamer-plugins-base. Remove the rest of them.
|
|
|
|
removefrom gstreamer1 --allbut /usr/${libdir}/libgstbase-1.0.* \
|
|
|
|
/usr/${libdir}/libgstreamer-1.0.*
|
|
|
|
removefrom gstreamer1-plugins-base --allbut \
|
2023-06-09 13:21:30 +00:00
|
|
|
/usr/${libdir}/libgst{allocators,app,audio,fft,gl,pbutils,tag,video}-1.0.*
|
2018-06-18 18:56:22 +00:00
|
|
|
|
|
|
|
## We have enough geoip libraries, thanks
|
|
|
|
removepkg geoclue2
|
|
|
|
|
|
|
|
## And remove the packages that those extra libraries pulled in
|
2024-06-04 08:14:08 +00:00
|
|
|
removepkg cdparanoia-libs avahi-glib avahi-libs ModemManager-glib
|
2023-06-09 13:21:30 +00:00
|
|
|
|
|
|
|
## Remove build-id links, they are used with debuginfo
|
|
|
|
remove /usr/lib/.build-id
|
|
|
|
|
|
|
|
## make the image more reproducible
|
|
|
|
|
|
|
|
## make machine-id empty but present to avoid systemd populating /etc with
|
|
|
|
## preset settings
|
|
|
|
remove /etc/machine-id
|
|
|
|
append /etc/machine-id ""
|
|
|
|
## journalctl message catalog, non-deterministic
|
|
|
|
remove /var/lib/systemd/catalog/database
|
|
|
|
## non-reproducible caches
|
|
|
|
remove /var/cache/ldconfig/aux-cache
|
|
|
|
remove /etc/pki/ca-trust/extracted/java/cacerts
|
|
|
|
|
|
|
|
## sort groups
|
|
|
|
runcmd chroot ${root} /bin/sh -c "LC_ALL=C sort /etc/group > /etc/group- && mv /etc/group- /etc/group"
|
2024-07-17 22:15:36 +00:00
|
|
|
runcmd chroot ${root} /bin/sh -c "LC_ALL=C sort /etc/gshadow > /etc/gshadow- && mv /etc/gshadow- /etc/gshadow"
|