2011-05-05 22:24:58 +00:00
|
|
|
## lorax template file: cleanup for the ramdisk (runtime image)
|
2012-09-17 14:27:13 +00:00
|
|
|
<%page args="libdir, product, root"/>
|
2011-05-05 22:24:58 +00:00
|
|
|
|
2012-06-13 22:04:17 +00:00
|
|
|
## remove the sources
|
|
|
|
remove usr/share/i18n
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## not required packages installed as dependencies
|
2012-10-22 09:30:56 +00:00
|
|
|
## no perl besides s390x
|
2015-08-07 17:56:50 +00:00
|
|
|
## perl needed for powerpc-utils and fbset on PPC
|
|
|
|
%if basearch not in ("ppc", "ppc64", "ppc64le", "s390x"):
|
2012-10-22 09:30:56 +00:00
|
|
|
removepkg perl*
|
|
|
|
%endif
|
2011-08-09 21:33:27 +00:00
|
|
|
## no sound support, thanks
|
2016-03-16 15:32:20 +00:00
|
|
|
removepkg flac gstreamer-tools libsndfile pulseaudio* sound-theme-freedesktop
|
2011-08-09 21:33:27 +00:00
|
|
|
## we don't create new initramfs/bootloader conf inside anaconda
|
|
|
|
## (that happens inside the target system after we install dracut/grubby)
|
2012-02-16 19:58:13 +00:00
|
|
|
removepkg dracut-network grubby anaconda-dracut
|
2012-06-19 22:12:55 +00:00
|
|
|
removefrom ${product.name}-logos /usr/share/plymouth/*
|
2012-02-08 00:18:39 +00:00
|
|
|
## In order to execute the /usr move on upgrades we need convertfs from dracut
|
2012-06-17 19:16:05 +00:00
|
|
|
## We also need dracut-shutdown.service and dracut-initramfs-restore to reboot
|
|
|
|
removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh \
|
2012-09-06 22:29:45 +00:00
|
|
|
/usr/lib/dracut/modules.d/99base/dracut-lib.sh \
|
2013-07-30 12:47:16 +00:00
|
|
|
/usr/lib/systemd/* /usr/lib/dracut/modules.d/98systemd/*.service \
|
|
|
|
/usr/lib/dracut/dracut-initramfs-restore
|
2011-08-09 21:33:27 +00:00
|
|
|
## we don't run SELinux (not in enforcing, anyway)
|
2011-07-26 21:03:51 +00:00
|
|
|
removepkg checkpolicy selinux-policy libselinux-utils
|
2015-07-17 00:03:03 +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 ""
|
|
|
|
|
2011-08-09 21:33:27 +00:00
|
|
|
## anaconda has its own repo files
|
2015-03-16 19:31:29 +00:00
|
|
|
removefrom fedora-release --allbut /etc/os-release /usr/lib/os-release \
|
|
|
|
/usr/lib/os.release.d/*
|
2013-04-26 15:56:20 +00:00
|
|
|
removepkg fedora-release-rawhide
|
2015-08-20 18:17:08 +00:00
|
|
|
|
|
|
|
## keep enough of shadow-utils to create accounts
|
|
|
|
removefrom shadow-utils --allbut /usr/bin/chage /usr/sbin/chpasswd \
|
|
|
|
/usr/sbin/groupadd /usr/sbin/useradd
|
|
|
|
|
|
|
|
## remove other account management tools
|
|
|
|
removepkg usermode usermode-gtk passwd
|
2011-08-31 23:32:37 +00:00
|
|
|
## no services to turn on/off (keep the /etc/init.d link though)
|
|
|
|
removefrom chkconfig --allbut /etc/init.d
|
2014-04-14 14:44:12 +00:00
|
|
|
## Miscellanous unnecessary gpg program
|
|
|
|
removepkg pinentry
|
2011-08-09 21:33:27 +00:00
|
|
|
## no storage device monitoring
|
|
|
|
removepkg device-mapper-event dmraid-events sgpio
|
2011-08-29 18:41:09 +00:00
|
|
|
## no notifications in anaconda
|
|
|
|
removepkg notification-daemon
|
|
|
|
## logrotate isn't useful in anaconda
|
|
|
|
removepkg logrotate
|
|
|
|
remove /etc/logrotate.d
|
2012-07-02 15:08:39 +00:00
|
|
|
## anaconda needs this to do media check
|
|
|
|
removefrom isomd5sum --allbut /usr/bin/checkisomd5
|
2011-08-09 21:33:27 +00:00
|
|
|
|
2015-07-20 13:01:01 +00:00
|
|
|
## systemd-nspawn isn't very useful and doesn't link anyway without iptables,
|
|
|
|
## and there's no need for a bunch of zsh files without zsh
|
|
|
|
removefrom systemd /usr/bin/systemd-nspawn /usr/share/zsh
|
|
|
|
|
2011-08-09 21:33:27 +00:00
|
|
|
## various other things we remove to save space
|
2014-04-01 17:45:48 +00:00
|
|
|
removepkg avahi-autoipd coreutils-libs dash db4-utils diffutils file
|
2015-01-13 21:46:51 +00:00
|
|
|
removepkg genisoimage info iptables
|
2014-09-23 18:42:10 +00:00
|
|
|
removepkg jasper-libs libXxf86misc
|
2013-11-11 11:46:37 +00:00
|
|
|
removepkg libasyncns libhbaapi libhbalinux
|
2016-05-26 22:37:58 +00:00
|
|
|
removepkg libmcpp libpcap libtiff linux-atm-libs
|
2011-08-29 18:41:09 +00:00
|
|
|
removepkg lvm2-libs m4 mailx makebootfat mcpp
|
2011-08-29 17:27:40 +00:00
|
|
|
removepkg mingetty mobile-broadband-provider-info pkgconfig ppp pth
|
2012-06-04 08:10:43 +00:00
|
|
|
removepkg rmt rpcbind squashfs-tools system-config-firewall-base
|
2011-08-09 21:33:27 +00:00
|
|
|
removepkg tigervnc-license ttmkfdir xml-common xorg-x11-font-utils
|
2013-09-03 17:14:13 +00:00
|
|
|
removepkg xorg-x11-server-common yum-utils firewalld
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## other removals
|
2012-03-19 18:22:52 +00:00
|
|
|
remove /boot /home /media /opt /srv /tmp/*
|
2011-06-23 21:45:12 +00:00
|
|
|
remove /usr/etc /usr/games /usr/local /usr/tmp
|
2014-10-07 15:41:20 +00:00
|
|
|
remove /usr/share/doc /usr/share/info /usr/share/man /usr/share/gnome
|
2011-06-22 18:20:02 +00:00
|
|
|
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
|
2011-06-23 21:45:12 +00:00
|
|
|
remove /var/db /var/games /var/tmp /var/yp /var/nis /var/opt /var/local
|
|
|
|
remove /var/mail /var/spool /var/preserve /var/report
|
2016-03-15 21:13:43 +00:00
|
|
|
remove /var/lib/rpm/* /var/lib/yum /var/lib/dnf
|
2016-03-15 21:13:56 +00:00
|
|
|
## clean up the files created by various '> /dev/null's
|
|
|
|
remove /dev/*
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## icons cache
|
2011-05-13 17:06:03 +00:00
|
|
|
remove /usr/share/icons/*/icon-theme.cache
|
2011-05-05 22:24:58 +00:00
|
|
|
|
2011-06-23 21:31:53 +00:00
|
|
|
## clean up kernel modules
|
2015-06-25 22:01:27 +00:00
|
|
|
removekmod sound drivers/media drivers/hwmon \
|
2015-03-04 19:33:40 +00:00
|
|
|
net/atm net/bluetooth net/sched net/sctp \
|
|
|
|
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6 \
|
2016-06-21 17:11:28 +00:00
|
|
|
drivers/watchdog drivers/rtc drivers/input/joystick \
|
2015-03-17 21:12:16 +00:00
|
|
|
drivers/bluetooth drivers/edac drivers/staging \
|
2015-03-04 19:33:40 +00:00
|
|
|
drivers/usb/serial drivers/usb/host drivers/usb/misc \
|
|
|
|
fs/ocfs2 fs/ceph fs/nfsd fs/ubifs fs/nilfs2 \
|
|
|
|
arch/x86/kvm
|
2014-08-12 18:28:26 +00:00
|
|
|
## Need to keep virtio_console.ko and ipmi stuff in drivers/char
|
2015-01-05 20:38:06 +00:00
|
|
|
## Also keep virtio-rng so that the installer can get sufficient randomness for
|
|
|
|
## LUKS setup.
|
2015-03-04 19:33:40 +00:00
|
|
|
removekmod drivers/char --allbut virtio_console hw_random \
|
|
|
|
virtio-rng ipmi
|
2015-03-17 21:12:16 +00:00
|
|
|
removekmod drivers/hid --allbut hid-logitech-dj hid-logitech-hidpp
|
2016-02-19 23:48:44 +00:00
|
|
|
removekmod drivers/video --allbut hyperv_fb syscopyarea sysfillrect sysimgblt
|
2015-03-04 19:33:40 +00:00
|
|
|
remove lib/modules/*/{build,source,*.map}
|
2011-08-09 21:39:07 +00:00
|
|
|
## NOTE: depmod gets re-run after cleanup finishes
|
2011-06-23 21:31:53 +00:00
|
|
|
|
2011-10-26 18:46:46 +00:00
|
|
|
## remove unused themes, theme engines, icons, etc.
|
|
|
|
removefrom gtk2 /usr/${libdir}/gtk-2.0/*/{engines,printbackends}/*
|
|
|
|
removefrom gtk2 /usr/share/themes/*
|
|
|
|
## clearlooks is the theme we use for gtk2
|
|
|
|
removefrom gtk2-engines --allbut /usr/${libdir}/*/libclearlooks.so \
|
|
|
|
/usr/share/themes/Clearlooks/*
|
2012-01-18 18:16:15 +00:00
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*/printbackends/*
|
|
|
|
removefrom gtk3 /usr/share/themes/*
|
2011-10-26 18:46:46 +00:00
|
|
|
removefrom metacity --allbut /usr/bin/* /usr/${libdir}/* /etc/*
|
|
|
|
|
2012-04-20 23:12:26 +00:00
|
|
|
## filesystem tools
|
|
|
|
removefrom e2fsprogs /usr/share/locale/*
|
2014-07-11 16:47:01 +00:00
|
|
|
removefrom xfsprogs /usr/share/locale/* /usr/share/doc/* /usr/share/man/*
|
|
|
|
removefrom xfsdump --allbut /usr/sbin/*
|
2011-10-26 18:46:46 +00:00
|
|
|
|
2011-05-05 22:24:58 +00:00
|
|
|
## other package specific removals
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom GConf2 /etc/rpm/* /etc/xdg/* /usr/bin/*
|
2011-08-29 18:41:09 +00:00
|
|
|
removefrom GConf2 /usr/${libdir}/GConf/2/libgconfbackend-{evoldap,oldxml}*
|
|
|
|
removefrom GConf2 /usr/${libdir}/gio/modules/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom GConf2 /usr/libexec/gconf-defaults-mechanism /usr/share/GConf/*
|
|
|
|
removefrom GConf2 /usr/share/locale/* /usr/share/sgml/*
|
2011-08-08 20:28:13 +00:00
|
|
|
removefrom NetworkManager /usr/share/NetworkManager/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom NetworkManager /usr/share/locale/*/NetworkManager.mo
|
2012-08-20 08:22:47 +00:00
|
|
|
removefrom nm-connection-editor /usr/${libdir}/*
|
|
|
|
removefrom nm-connection-editor /usr/share/applications/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom anaconda /etc/* /usr/share/applications/* /usr/share/icons/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom atk /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom audit /etc/* /sbin/audispd /sbin/auditctl /sbin/aureport
|
|
|
|
removefrom audit /sbin/ausearch /sbin/autrace /usr/bin/*
|
|
|
|
removefrom audit-libs /etc/* /${libdir}/libauparse*
|
|
|
|
removefrom authconfig /usr/sbin/* /usr/share/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom bash /etc/* /usr/bin/bashbug* /usr/share/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom bind-utils /usr/bin/dig /usr/bin/host /usr/bin/nsupdate
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom bitmap-fangsongti-fonts /usr/share/fonts/*
|
|
|
|
removefrom ca-certificates /etc/pki/java/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom ca-certificates /etc/pki/tls/certs/ca-bundle.trust.crt /etc/ssl/*
|
2015-07-20 13:01:01 +00:00
|
|
|
removefrom cairo /usr/${libdir}/libcairo-script* /usr/bin/cairo-sphinx
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom coreutils /etc/* /usr/bin/link /usr/bin/nice /usr/bin/stty /usr/bin/su /usr/bin/unlink
|
|
|
|
removefrom coreutils /usr/sbin/runuser /usr/bin/[ /usr/bin/base64 /usr/bin/chcon
|
2012-02-14 18:31:16 +00:00
|
|
|
removefrom coreutils /usr/bin/cksum /usr/bin/comm /usr/bin/csplit
|
2013-03-20 11:44:16 +00:00
|
|
|
removefrom coreutils /usr/bin/dir /usr/bin/dircolors
|
2012-06-04 21:40:50 +00:00
|
|
|
removefrom coreutils /usr/bin/expand /usr/bin/factor
|
2012-07-09 10:35:30 +00:00
|
|
|
removefrom coreutils /usr/bin/fold /usr/bin/groups /usr/bin/hostid
|
2011-06-22 18:20:02 +00:00
|
|
|
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
|
2015-11-06 19:22:56 +00:00
|
|
|
removefrom coreutils /usr/bin/pathchk
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom coreutils /usr/bin/pinky /usr/bin/pr /usr/bin/printenv
|
2014-07-10 09:41:41 +00:00
|
|
|
removefrom coreutils /usr/bin/printf /usr/bin/ptx /usr/bin/runcon
|
2012-05-31 14:38:29 +00:00
|
|
|
removefrom coreutils /usr/bin/sha224sum /usr/bin/sha384sum
|
2011-06-22 18:20:02 +00:00
|
|
|
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
|
|
|
|
removefrom coreutils /usr/bin/who /usr/bin/whoami /usr/bin/yes /usr/share/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom cpio /usr/share/*
|
|
|
|
removefrom cracklib /usr/sbin/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom cracklib-dicts /usr/${libdir}/* /usr/sbin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom cryptsetup-luks /usr/share/*
|
|
|
|
removefrom cyrus-sasl-lib /usr/sbin/*
|
|
|
|
removefrom db4 /usr/*
|
|
|
|
removefrom dbus-glib /usr/bin/*
|
|
|
|
removefrom dbus-x11 /etc/X11/*
|
2011-10-26 17:53:06 +00:00
|
|
|
removefrom dejavu-sans-fonts --allbut *.conf */DejaVuSans{,-Bold}.ttf
|
|
|
|
removefrom dejavu-sans-mono-fonts --allbut *.conf */DejaVuSansMono.ttf
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom dhclient /usr/lib/* /usr/share/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom dnsmasq /etc/rc.d/* /usr/sbin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom dump /etc/*
|
|
|
|
removefrom elfutils-libelf /usr/share/locale/*
|
|
|
|
removefrom expat /usr/bin/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom fcoe-utils /etc/rc.d/* /usr/libexec/fcoe/dcbcheck.sh
|
|
|
|
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
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom file-libs /usr/share/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom findutils /usr/bin/oldfind /usr/share/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom fontconfig /usr/bin/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom gawk /usr/bin/{igawk,pgawk} /usr/libexec/* /usr/share/*
|
2015-09-24 20:52:20 +00:00
|
|
|
removefrom gdb /usr/share/* /usr/include/* /etc/gdbinit*
|
2012-04-12 00:20:44 +00:00
|
|
|
removefrom gdisk /usr/share/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom gdk-pixbuf2 /usr/share/locale*
|
|
|
|
removefrom gfs2-utils /usr/sbin/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom glib2 /etc/* /usr/bin/* /usr/share/locale/*
|
2015-03-20 21:46:53 +00:00
|
|
|
removefrom glibc /etc/gai.conf /etc/localtime /etc/rpc
|
2011-07-25 23:45:02 +00:00
|
|
|
removefrom glibc /lib/*/nosegneg/* /${libdir}/libBrokenLocale*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom glibc /${libdir}/libSegFault* /${libdir}/libanl*
|
|
|
|
removefrom glibc /${libdir}/libcidn* /${libdir}/libnss_compat*
|
|
|
|
removefrom glibc /${libdir}/libnss_hesiod* /${libdir}/libnss_nis*
|
2014-08-19 16:19:45 +00:00
|
|
|
# python-pyudev uses ctypes.util.find_library, which uses /sbin/ldconfig
|
2015-10-06 16:03:27 +00:00
|
|
|
removefrom glibc /${libdir}/rtkaio* /sbin/sln
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom glibc /usr/libexec/* /usr/sbin/*
|
|
|
|
removefrom glibc-common /etc/* /usr/bin/catchsegv /usr/bin/gencat
|
2014-07-10 09:41:41 +00:00
|
|
|
removefrom glibc-common /usr/bin/getent
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom glibc-common /usr/bin/locale /usr/bin/rpcgen /usr/bin/sprof
|
2012-06-13 22:04:17 +00:00
|
|
|
removefrom glibc-common /usr/bin/tzselect /usr/bin/localedef
|
|
|
|
removefrom glibc-common /usr/libexec/* /usr/sbin/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom gmp /usr/${libdir}/libgmpxx.* /usr/${libdir}/libmp.*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom gnome-bluetooth-libs /usr/${libdir}/libgnome-bluetooth*
|
|
|
|
removefrom gnome-bluetooth-libs /usr/share/*
|
|
|
|
removefrom gnutls /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom grep /etc/* /usr/share/locale/*
|
|
|
|
removefrom gstreamer /usr/bin/* /usr/${libdir}/gstreamer-0.10/*
|
|
|
|
removefrom gstreamer /usr/${libdir}/libgst* /usr/libexec/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom gtk2 /usr/bin/update-gtk-immodules
|
2012-12-20 11:32:27 +00:00
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom gzip /usr/bin/{gzexe,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew}
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom hwdata /etc/* /usr/share/hwdata/oui.txt /usr/share/hwdata/pnp.ids
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom hwdata /usr/share/hwdata/upgradelist
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom initscripts /etc/ppp/* /usr/sbin/* /usr/share/locale/*
|
2012-05-11 17:42:36 +00:00
|
|
|
removefrom iproute --allbut /usr/sbin/{ip,routef,routel,rtpr}
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom iscsi-initiator-utils /etc/rc.d/*
|
2012-07-12 07:37:30 +00:00
|
|
|
removefrom kbd --allbut */bin/{dumpkeys,kbd_mode,loadkeys,setfont,unicode_*,chvt}
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom less /etc/*
|
|
|
|
removefrom libX11-common /usr/share/X11/XErrorDB
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom libbonobo /etc/* /usr/bin/* /usr/sbin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libbonobo /usr/${libdir}/bonobo/monikers/*
|
|
|
|
removefrom libbonobo /usr/${libdir}/orbit-2.0/Bonobo_module.so
|
|
|
|
removefrom libcanberra /usr/${libdir}/libcanberra-*
|
|
|
|
removefrom libcanberra-gtk2 /usr/${libdir}/gtk-2.0/*
|
2014-06-24 23:14:10 +00:00
|
|
|
removefrom libcanberra-gtk3 /usr/bin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libcap /usr/sbin/*
|
|
|
|
removefrom libconfig /usr/${libdir}/libconfig++*
|
2012-01-18 18:16:15 +00:00
|
|
|
removefrom libcroco /usr/bin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libgnome-keyring /usr/share/locale/*
|
|
|
|
removefrom libgnomecanvas /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom libgpg-error /usr/bin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libgssglue /etc/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom libidn /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom libmlx4 /etc/rdma/* /usr/${libdir}/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libnotify /usr/bin/*
|
2012-01-18 18:16:15 +00:00
|
|
|
removefrom librsvg2 /usr/bin/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom libselinux /usr/sbin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libsemanage /etc/selinux/*
|
|
|
|
removefrom libstdc++ /usr/share/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom libuser /usr/bin/* /usr/sbin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom libvorbis /usr/${libdir}/libvorbisenc.*
|
|
|
|
removefrom libxml2 /usr/bin/*
|
|
|
|
removefrom libxml2-python /usr/${libdir}/python?.?/site-packages/libxml2mod.a
|
|
|
|
removefrom libxml2-python /usr/${libdir}/python?.?/site-packages/libxml2mod.la
|
2015-08-11 09:11:52 +00:00
|
|
|
removefrom lldpad /etc/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom lua /usr/bin/*
|
|
|
|
removefrom madan-fonts /usr/share/fonts/madan/*
|
|
|
|
removefrom mdadm /etc/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom module-init-tools /etc/* /usr/sbin/insmod.static /usr/sbin/weak-modules
|
|
|
|
removefrom mt-st /etc/* /usr/sbin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom mtools /etc/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom ncurses /usr/bin/captoinfo /usr/bin/infocmp /usr/bin/infotocap
|
|
|
|
removefrom ncurses /usr/bin/reset /usr/bin/tabs /usr/bin/tic /usr/bin/toe
|
|
|
|
removefrom ncurses /usr/bin/tput /usr/bin/tset
|
|
|
|
removefrom ncurses-libs /usr/${libdir}/libform* /usr/${libdir}/libmenu*
|
|
|
|
removefrom ncurses-libs /usr/${libdir}/libpanel.* /usr/${libdir}/libtic*
|
2012-05-23 21:53:37 +00:00
|
|
|
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/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom newt /usr/share/locale/*
|
2011-08-29 18:41:09 +00:00
|
|
|
removefrom nfs-utils /etc/nfsmount.conf
|
|
|
|
removefrom nfs-utils /etc/rc.d/init.d/* /lib/systemd/system/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom nfs-utils /etc/sysconfig/nfs /sbin/rpc.statd /usr/sbin/exportfs
|
|
|
|
removefrom nfs-utils /usr/sbin/gss_clnt_send_err /usr/sbin/gss_destroy_creds
|
|
|
|
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
|
|
|
|
removefrom nfs-utils /usr/sbin/rpc.svcgssd /usr/sbin/rpcdebug
|
|
|
|
removefrom nfs-utils /usr/sbin/showmount /usr/sbin/sm-notify
|
|
|
|
removefrom nfs-utils /usr/sbin/start-statd /var/lib/nfs/etab
|
|
|
|
removefrom nfs-utils /var/lib/nfs/rmtab /var/lib/nfs/state /var/lib/nfs/xtab
|
2012-02-17 10:13:13 +00:00
|
|
|
removefrom nhn-nanum-gothic-fonts /usr/share/fonts/nhn-nanum/NanumGothic*Bold.ttf
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom nss-softokn /usr/${libdir}/nss/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom openldap /etc/openldap/* /usr/${libdir}/libldap_r-*
|
|
|
|
removefrom openssh /etc/ssh/* /usr/libexec/*
|
|
|
|
removefrom openssh-clients /etc/ssh/* /usr/bin/slogin /usr/bin/ssh-*
|
2013-03-12 17:53:37 +00:00
|
|
|
removefrom openssh-clients /usr/libexec/*
|
|
|
|
removefrom openssh-server /etc/ssh/* /usr/libexec/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom openssl /etc/pki/* /usr/bin/* /usr/${libdir}/openssl/*
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom pam /usr/sbin/* /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom policycoreutils /etc/* /usr/bin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom polkit /usr/bin/*
|
|
|
|
removefrom polkit-desktop-policy /var/lib/*
|
|
|
|
removefrom popt /usr/share/locale/*
|
2011-08-08 20:22:44 +00:00
|
|
|
removefrom procps /usr/bin/free /usr/bin/pgrep /usr/bin/pkill
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom procps /usr/bin/pmap /usr/bin/pwdx /usr/bin/skill /usr/bin/slabtop
|
|
|
|
removefrom procps /usr/bin/snice /usr/bin/tload /usr/bin/uptime
|
|
|
|
removefrom procps /usr/bin/vmstat /usr/bin/w /usr/bin/watch
|
2012-02-07 22:41:17 +00:00
|
|
|
removefrom psmisc /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom pygtk2 /usr/bin/* /usr/${libdir}/pygtk/*
|
|
|
|
removefrom pykickstart /usr/bin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom readline /usr/${libdir}/*
|
2011-08-29 18:06:14 +00:00
|
|
|
removefrom libreport /usr/bin/* /usr/share/locale/*
|
2014-07-12 00:09:47 +00:00
|
|
|
removefrom rpm /usr/bin/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom rsync /etc/*
|
|
|
|
removefrom sed /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom smartmontools /etc/* /usr/sbin/smartd
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom smartmontools /usr/sbin/update-smart-drivedb
|
|
|
|
removefrom smartmontools /usr/share/smartmontools/*
|
|
|
|
removefrom sqlite /usr/bin/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom system-config-date /etc/* /usr/bin/* /usr/share/icons/*
|
|
|
|
removefrom system-config-keyboard /etc/* /usr/bin/* /usr/share/icons/*
|
2011-08-08 20:08:11 +00:00
|
|
|
removefrom sysvinit-tools /usr/bin/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom tar /usr/share/locale/*
|
|
|
|
removefrom usbutils /usr/bin/*
|
2011-08-31 23:32:37 +00:00
|
|
|
removefrom util-linux --allbut \
|
2015-10-02 11:49:02 +00:00
|
|
|
/usr/bin/{dmesg,getopt,kill,login,lsblk,more,mount,umount,mountpoint,findmnt} \
|
2011-08-31 23:32:37 +00:00
|
|
|
/etc/mtab /etc/pam.d/login /etc/pam.d/remote \
|
2012-02-07 22:41:17 +00:00
|
|
|
/usr/sbin/{agetty,blkid,blockdev,clock,fdisk,fsck,fstrim,hwclock,losetup} \
|
2013-11-14 16:17:58 +00:00
|
|
|
/usr/sbin/{mkswap,nologin,sfdisk,swapoff,swapon,wipefs,partx} \
|
2015-08-05 13:09:03 +00:00
|
|
|
/usr/bin/{logger,hexdump,flock}
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom volume_key-libs /usr/share/locale/*
|
2011-06-22 18:20:02 +00:00
|
|
|
removefrom wget /etc/* /usr/share/locale/*
|
2011-05-13 17:06:03 +00:00
|
|
|
removefrom xorg-x11-drv-intel /usr/${libdir}/libI*
|
|
|
|
removefrom xorg-x11-drv-openchrome /usr/${libdir}/libchrome*
|
|
|
|
removefrom xorg-x11-drv-synaptics /usr/bin/*
|
|
|
|
removefrom xorg-x11-drv-wacom /usr/bin/*
|
2011-08-31 23:32:37 +00:00
|
|
|
removefrom xorg-x11-fonts-misc --allbut /usr/share/X11/fonts/misc/{6x13,encodings,fonts,*cursor}*
|
2016-03-09 19:39:36 +00:00
|
|
|
removefrom xorg-x11-server-utils --allbut /usr/bin/xrandr /usr/share/X11/rgb.txt /usr/bin/xrdb
|
2011-08-29 18:41:09 +00:00
|
|
|
removefrom yum /etc/* /usr/share/locale/* /usr/share/yum-cli/*
|
2011-08-31 23:32:37 +00:00
|
|
|
removefrom ${product.name}-logos /etc/*
|
|
|
|
removefrom ${product.name}-logos /usr/share/icons/{Bluecurve,oxygen}/*
|
|
|
|
removefrom ${product.name}-logos /usr/share/{firstboot,gnome-screensaver,kde4,pixmaps}/*
|
2011-05-05 22:24:58 +00:00
|
|
|
|
|
|
|
## cleanup_python_files()
|
|
|
|
runcmd find ${root} -name "*.pyo" -type f -delete
|
|
|
|
runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \;
|
2011-08-05 21:25:57 +00:00
|
|
|
|
2012-06-19 22:14:06 +00:00
|
|
|
## remove any broken links in /etc or /usr
|
2011-08-09 21:33:27 +00:00
|
|
|
## (broken systemd service links lead to confusing noise at boot)
|
2011-08-05 21:25:57 +00:00
|
|
|
## NOTE: not checking /var because we want to keep /var/run
|
2012-01-06 00:38:45 +00:00
|
|
|
## NOTE: Excluding /etc/mtab which links to /proc/self/mounts for systemd
|
2012-06-19 22:14:06 +00:00
|
|
|
runcmd chroot ${root} find -L /etc /usr -xdev -type l -and \! -name "mtab" \
|
|
|
|
-printf "removing broken symbolic link %p -> %l\n" -delete
|
2016-03-15 21:10:55 +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 \
|
|
|
|
/usr/${libdir}/libgst{app,audio,fft,pbutils,tag,video}-1.0.*
|
|
|
|
|
|
|
|
## We have enough geoip libraries, thanks
|
|
|
|
removepkg geoclue2
|
|
|
|
|
|
|
|
## And remove the packages that those extra libraries pulled in
|
|
|
|
removepkg cdparanoia-libs opus libtheora libvisual flac-libs gsm avahi-glib avahi-libs \
|
|
|
|
ModemManager-glib
|
|
|
|
|
|
|
|
## metacity requires libvorbis and libvorbisfile, but enc/dec are no longer needed
|
|
|
|
removefrom libvorbis --allbut /usr/${libdir}/libvorbisfile.* /usr/${libdir}/libvorbis.*
|