|
|
@ -12,6 +12,8 @@ remove usr/share/i18n
|
|
|
|
## no sound support, thanks
|
|
|
|
## no sound support, thanks
|
|
|
|
removepkg alsa* flac gstreamer-tools libsndfile pulseaudio* sound-theme-freedesktop
|
|
|
|
removepkg alsa* flac gstreamer-tools libsndfile pulseaudio* sound-theme-freedesktop
|
|
|
|
removepkg midisport-firmware
|
|
|
|
removepkg midisport-firmware
|
|
|
|
|
|
|
|
## no fancy video, either
|
|
|
|
|
|
|
|
removepkg libcrystalhd crystalhd-firmware ivtv-firmware cx18-firmware
|
|
|
|
## we don't create new initramfs/bootloader conf inside anaconda
|
|
|
|
## we don't create new initramfs/bootloader conf inside anaconda
|
|
|
|
## (that happens inside the target system after we install dracut/grubby)
|
|
|
|
## (that happens inside the target system after we install dracut/grubby)
|
|
|
|
removepkg dracut-network grubby anaconda-dracut
|
|
|
|
removepkg dracut-network grubby anaconda-dracut
|
|
|
@ -25,19 +27,18 @@ removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh \
|
|
|
|
## we don't run SELinux (not in enforcing, anyway)
|
|
|
|
## we don't run SELinux (not in enforcing, anyway)
|
|
|
|
removepkg checkpolicy selinux-policy libselinux-utils
|
|
|
|
removepkg checkpolicy selinux-policy libselinux-utils
|
|
|
|
## anaconda has its own repo files
|
|
|
|
## anaconda has its own repo files
|
|
|
|
removepkg fedora-release fedora-release-rawhide
|
|
|
|
removefrom fedora-release --allbut /etc/os-release
|
|
|
|
|
|
|
|
removepkg fedora-release-rawhide
|
|
|
|
## no user accounts = no account management
|
|
|
|
## no user accounts = no account management
|
|
|
|
removepkg usermode usermode-gtk passwd shadow-utils
|
|
|
|
removepkg usermode usermode-gtk passwd shadow-utils
|
|
|
|
## no services to turn on/off (keep the /etc/init.d link though)
|
|
|
|
## no services to turn on/off (keep the /etc/init.d link though)
|
|
|
|
removefrom chkconfig --allbut /etc/init.d
|
|
|
|
removefrom chkconfig --allbut /etc/init.d
|
|
|
|
## we don't check GPG keys (hooray bug #998)
|
|
|
|
## Miscellanous unnecessary gpg program
|
|
|
|
removepkg gnupg2 pinentry
|
|
|
|
removepkg pinentry
|
|
|
|
## no printer/scanner support in anaconda
|
|
|
|
## no printer/scanner support in anaconda
|
|
|
|
removepkg cups-libs iscan-firmware
|
|
|
|
removepkg cups-libs iscan-firmware
|
|
|
|
## no storage device monitoring
|
|
|
|
## no storage device monitoring
|
|
|
|
removepkg device-mapper-event dmraid-events sgpio
|
|
|
|
removepkg device-mapper-event dmraid-events sgpio
|
|
|
|
## we don't (currently) support deltarpms in anaconda
|
|
|
|
|
|
|
|
removepkg deltarpm
|
|
|
|
|
|
|
|
## no notifications in anaconda
|
|
|
|
## no notifications in anaconda
|
|
|
|
removepkg notification-daemon
|
|
|
|
removepkg notification-daemon
|
|
|
|
## logrotate isn't useful in anaconda
|
|
|
|
## logrotate isn't useful in anaconda
|
|
|
@ -47,9 +48,9 @@ remove /etc/logrotate.d
|
|
|
|
removefrom isomd5sum --allbut /usr/bin/checkisomd5
|
|
|
|
removefrom isomd5sum --allbut /usr/bin/checkisomd5
|
|
|
|
|
|
|
|
|
|
|
|
## various other things we remove to save space
|
|
|
|
## various other things we remove to save space
|
|
|
|
removepkg avahi-autoipd coreutils-libs curl dash db4-utils diffutils file
|
|
|
|
removepkg avahi-autoipd coreutils-libs dash db4-utils diffutils file
|
|
|
|
removepkg genisoimage gnome-python2 info iptables
|
|
|
|
removepkg genisoimage gnome-python2 info iptables
|
|
|
|
removepkg jasper-libs libXt libXxf86misc
|
|
|
|
removepkg jasper-libs libXxf86misc
|
|
|
|
removepkg libasyncns libhbaapi libhbalinux
|
|
|
|
removepkg libasyncns libhbaapi libhbalinux
|
|
|
|
removepkg libmcpp libpcap libtiff libutempter linux-atm-libs
|
|
|
|
removepkg libmcpp libpcap libtiff libutempter linux-atm-libs
|
|
|
|
removepkg lvm2-libs m4 mailx makebootfat mcpp
|
|
|
|
removepkg lvm2-libs m4 mailx makebootfat mcpp
|
|
|
@ -76,7 +77,7 @@ remove /usr/share/icons/*/icon-theme.cache
|
|
|
|
## clean up kernel modules
|
|
|
|
## clean up kernel modules
|
|
|
|
<%
|
|
|
|
<%
|
|
|
|
removekmods = """
|
|
|
|
removekmods = """
|
|
|
|
sound drivers/media drivers/hwmon drivers/video drivers/char
|
|
|
|
sound drivers/media drivers/hwmon drivers/video
|
|
|
|
net/atm net/bluetooth net/sched net/sctp net/bridge
|
|
|
|
net/atm net/bluetooth net/sched net/sctp net/bridge
|
|
|
|
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6
|
|
|
|
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6
|
|
|
|
drivers/watchdog drivers/target drivers/rtc drivers/input/joystick
|
|
|
|
drivers/watchdog drivers/target drivers/rtc drivers/input/joystick
|
|
|
@ -90,6 +91,8 @@ arch/x86/kvm
|
|
|
|
remove lib/modules/*/kernel/${kmodpath}
|
|
|
|
remove lib/modules/*/kernel/${kmodpath}
|
|
|
|
%endfor
|
|
|
|
%endfor
|
|
|
|
remove lib/modules/*/{build,source,*.map}
|
|
|
|
remove lib/modules/*/{build,source,*.map}
|
|
|
|
|
|
|
|
## Need to keep virtio_console.ko and ipmi stuff in drivers/char
|
|
|
|
|
|
|
|
runcmd chroot ${root} find /lib/modules -regex ".*/kernel/drivers/char/.*" \! -name virtio_console.ko\* \! -name ipmi* -delete
|
|
|
|
## NOTE: depmod gets re-run after cleanup finishes
|
|
|
|
## NOTE: depmod gets re-run after cleanup finishes
|
|
|
|
|
|
|
|
|
|
|
|
## do not include plymouth 'label' plugin (no text used in installer theme)
|
|
|
|
## do not include plymouth 'label' plugin (no text used in installer theme)
|
|
|
@ -113,7 +116,8 @@ removefrom metacity --allbut /usr/bin/* /usr/${libdir}/* /etc/*
|
|
|
|
|
|
|
|
|
|
|
|
## filesystem tools
|
|
|
|
## filesystem tools
|
|
|
|
removefrom e2fsprogs /usr/share/locale/*
|
|
|
|
removefrom e2fsprogs /usr/share/locale/*
|
|
|
|
removefrom xfsprogs /usr/share/locale/*
|
|
|
|
removefrom xfsprogs /usr/share/locale/* /usr/share/doc/* /usr/share/man/*
|
|
|
|
|
|
|
|
removefrom xfsdump --allbut /usr/sbin/*
|
|
|
|
|
|
|
|
|
|
|
|
## other package specific removals
|
|
|
|
## other package specific removals
|
|
|
|
removefrom GConf2 /etc/rpm/* /etc/xdg/* /usr/bin/*
|
|
|
|
removefrom GConf2 /etc/rpm/* /etc/xdg/* /usr/bin/*
|
|
|
@ -126,16 +130,12 @@ removefrom NetworkManager /usr/share/locale/*/NetworkManager.mo
|
|
|
|
removefrom nm-connection-editor /usr/${libdir}/*
|
|
|
|
removefrom nm-connection-editor /usr/${libdir}/*
|
|
|
|
removefrom nm-connection-editor /usr/share/applications/*
|
|
|
|
removefrom nm-connection-editor /usr/share/applications/*
|
|
|
|
removefrom anaconda /etc/* /usr/share/applications/* /usr/share/icons/*
|
|
|
|
removefrom anaconda /etc/* /usr/share/applications/* /usr/share/icons/*
|
|
|
|
removefrom at-spi /etc/xdg/* /usr/${libdir}/libcspi*
|
|
|
|
|
|
|
|
removefrom at-spi /usr/${libdir}/libloginhelper* /usr/share/locale/*
|
|
|
|
|
|
|
|
removefrom atk /usr/share/locale/*
|
|
|
|
removefrom atk /usr/share/locale/*
|
|
|
|
removefrom audit /etc/* /sbin/audispd /sbin/auditctl /sbin/aureport
|
|
|
|
removefrom audit /etc/* /sbin/audispd /sbin/auditctl /sbin/aureport
|
|
|
|
removefrom audit /sbin/ausearch /sbin/autrace /usr/bin/*
|
|
|
|
removefrom audit /sbin/ausearch /sbin/autrace /usr/bin/*
|
|
|
|
removefrom audit-libs /etc/* /${libdir}/libauparse*
|
|
|
|
removefrom audit-libs /etc/* /${libdir}/libauparse*
|
|
|
|
removefrom authconfig /usr/sbin/* /usr/share/*
|
|
|
|
removefrom authconfig /usr/sbin/* /usr/share/*
|
|
|
|
removefrom bash /etc/* /usr/bin/bashbug* /usr/share/*
|
|
|
|
removefrom bash /etc/* /usr/bin/bashbug* /usr/share/*
|
|
|
|
removefrom bind-libs-lite /usr/${libdir}/libirs*
|
|
|
|
|
|
|
|
removefrom bind-libs-lite /usr/${libdir}/libisccfg-export*
|
|
|
|
|
|
|
|
removefrom bind-utils /usr/bin/dig /usr/bin/host /usr/bin/nsupdate
|
|
|
|
removefrom bind-utils /usr/bin/dig /usr/bin/host /usr/bin/nsupdate
|
|
|
|
removefrom bitmap-fangsongti-fonts /usr/share/fonts/*
|
|
|
|
removefrom bitmap-fangsongti-fonts /usr/share/fonts/*
|
|
|
|
removefrom ca-certificates /etc/pki/java/*
|
|
|
|
removefrom ca-certificates /etc/pki/java/*
|
|
|
@ -144,14 +144,14 @@ removefrom cairo /usr/${libdir}/libcairo-script*
|
|
|
|
removefrom coreutils /etc/* /usr/bin/link /usr/bin/nice /usr/bin/stty /usr/bin/su /usr/bin/unlink
|
|
|
|
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
|
|
|
|
removefrom coreutils /usr/sbin/runuser /usr/bin/[ /usr/bin/base64 /usr/bin/chcon
|
|
|
|
removefrom coreutils /usr/bin/cksum /usr/bin/comm /usr/bin/csplit
|
|
|
|
removefrom coreutils /usr/bin/cksum /usr/bin/comm /usr/bin/csplit
|
|
|
|
removefrom coreutils /usr/bin/dir /usr/bin/dircolors /usr/bin/dirname
|
|
|
|
removefrom coreutils /usr/bin/dir /usr/bin/dircolors
|
|
|
|
removefrom coreutils /usr/bin/expand /usr/bin/factor
|
|
|
|
removefrom coreutils /usr/bin/expand /usr/bin/factor
|
|
|
|
removefrom coreutils /usr/bin/fold /usr/bin/groups /usr/bin/hostid
|
|
|
|
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/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/mkfifo /usr/bin/nl /usr/bin/nohup /usr/bin/nproc
|
|
|
|
removefrom coreutils /usr/bin/od /usr/bin/paste /usr/bin/pathchk
|
|
|
|
removefrom coreutils /usr/bin/paste /usr/bin/pathchk
|
|
|
|
removefrom coreutils /usr/bin/pinky /usr/bin/pr /usr/bin/printenv
|
|
|
|
removefrom coreutils /usr/bin/pinky /usr/bin/pr /usr/bin/printenv
|
|
|
|
removefrom coreutils /usr/bin/printf /usr/bin/ptx /usr/bin/runcon /usr/bin/seq
|
|
|
|
removefrom coreutils /usr/bin/printf /usr/bin/ptx /usr/bin/runcon
|
|
|
|
removefrom coreutils /usr/bin/sha224sum /usr/bin/sha384sum
|
|
|
|
removefrom coreutils /usr/bin/sha224sum /usr/bin/sha384sum
|
|
|
|
removefrom coreutils /usr/bin/sha512sum /usr/bin/shuf /usr/bin/stat
|
|
|
|
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/stdbuf /usr/bin/sum /usr/bin/test
|
|
|
@ -161,7 +161,6 @@ removefrom coreutils /usr/bin/who /usr/bin/whoami /usr/bin/yes /usr/share/*
|
|
|
|
removefrom cpio /usr/share/*
|
|
|
|
removefrom cpio /usr/share/*
|
|
|
|
removefrom cracklib /usr/sbin/*
|
|
|
|
removefrom cracklib /usr/sbin/*
|
|
|
|
removefrom cracklib-dicts /usr/${libdir}/* /usr/sbin/*
|
|
|
|
removefrom cracklib-dicts /usr/${libdir}/* /usr/sbin/*
|
|
|
|
removefrom createrepo /usr/bin/* /usr/share/*
|
|
|
|
|
|
|
|
removefrom cryptsetup-luks /usr/share/*
|
|
|
|
removefrom cryptsetup-luks /usr/share/*
|
|
|
|
removefrom cyrus-sasl-lib /usr/sbin/*
|
|
|
|
removefrom cyrus-sasl-lib /usr/sbin/*
|
|
|
|
removefrom db4 /usr/*
|
|
|
|
removefrom db4 /usr/*
|
|
|
@ -191,10 +190,11 @@ removefrom glibc /lib/*/nosegneg/* /${libdir}/libBrokenLocale*
|
|
|
|
removefrom glibc /${libdir}/libSegFault* /${libdir}/libanl*
|
|
|
|
removefrom glibc /${libdir}/libSegFault* /${libdir}/libanl*
|
|
|
|
removefrom glibc /${libdir}/libcidn* /${libdir}/libnss_compat*
|
|
|
|
removefrom glibc /${libdir}/libcidn* /${libdir}/libnss_compat*
|
|
|
|
removefrom glibc /${libdir}/libnss_hesiod* /${libdir}/libnss_nis*
|
|
|
|
removefrom glibc /${libdir}/libnss_hesiod* /${libdir}/libnss_nis*
|
|
|
|
removefrom glibc /${libdir}/libthread* /${libdir}/rtkaio* /sbin/*
|
|
|
|
# python-pyudev uses ctypes.util.find_library, which uses /sbin/ldconfig
|
|
|
|
|
|
|
|
removefrom glibc /${libdir}/libthread* /${libdir}/rtkaio* /sbin/sln
|
|
|
|
removefrom glibc /usr/libexec/* /usr/sbin/*
|
|
|
|
removefrom glibc /usr/libexec/* /usr/sbin/*
|
|
|
|
removefrom glibc-common /etc/* /usr/bin/catchsegv /usr/bin/gencat
|
|
|
|
removefrom glibc-common /etc/* /usr/bin/catchsegv /usr/bin/gencat
|
|
|
|
removefrom glibc-common /usr/bin/getconf /usr/bin/getent
|
|
|
|
removefrom glibc-common /usr/bin/getent
|
|
|
|
removefrom glibc-common /usr/bin/locale /usr/bin/rpcgen /usr/bin/sprof
|
|
|
|
removefrom glibc-common /usr/bin/locale /usr/bin/rpcgen /usr/bin/sprof
|
|
|
|
removefrom glibc-common /usr/bin/tzselect /usr/bin/localedef
|
|
|
|
removefrom glibc-common /usr/bin/tzselect /usr/bin/localedef
|
|
|
|
removefrom glibc-common /usr/libexec/* /usr/sbin/*
|
|
|
|
removefrom glibc-common /usr/libexec/* /usr/sbin/*
|
|
|
@ -213,7 +213,6 @@ removefrom gstreamer /usr/bin/* /usr/${libdir}/gstreamer-0.10/*
|
|
|
|
removefrom gstreamer /usr/${libdir}/libgst* /usr/libexec/* /usr/share/locale/*
|
|
|
|
removefrom gstreamer /usr/${libdir}/libgst* /usr/libexec/* /usr/share/locale/*
|
|
|
|
removefrom gtk2 /usr/bin/update-gtk-immodules
|
|
|
|
removefrom gtk2 /usr/bin/update-gtk-immodules
|
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*
|
|
|
|
removefrom gtk3 /usr/${libdir}/gtk-3.0/*
|
|
|
|
removefrom gtk3 /usr/${libdir}/libgailutil*
|
|
|
|
|
|
|
|
removefrom gzip /usr/bin/{gzexe,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew}
|
|
|
|
removefrom gzip /usr/bin/{gzexe,zcmp,zdiff,zegrep,zfgrep,zforce,zgrep,zless,zmore,znew}
|
|
|
|
removefrom hwdata /etc/* /usr/share/hwdata/oui.txt /usr/share/hwdata/pnp.ids
|
|
|
|
removefrom hwdata /etc/* /usr/share/hwdata/oui.txt /usr/share/hwdata/pnp.ids
|
|
|
|
removefrom hwdata /usr/share/hwdata/upgradelist
|
|
|
|
removefrom hwdata /usr/share/hwdata/upgradelist
|
|
|
@ -228,7 +227,7 @@ removefrom libbonobo /usr/${libdir}/bonobo/monikers/*
|
|
|
|
removefrom libbonobo /usr/${libdir}/orbit-2.0/Bonobo_module.so
|
|
|
|
removefrom libbonobo /usr/${libdir}/orbit-2.0/Bonobo_module.so
|
|
|
|
removefrom libcanberra /usr/${libdir}/libcanberra-*
|
|
|
|
removefrom libcanberra /usr/${libdir}/libcanberra-*
|
|
|
|
removefrom libcanberra-gtk2 /usr/${libdir}/gtk-2.0/*
|
|
|
|
removefrom libcanberra-gtk2 /usr/${libdir}/gtk-2.0/*
|
|
|
|
removefrom libcanberra-gtk3 /usr/bin/* /usr/${libdir}/*
|
|
|
|
removefrom libcanberra-gtk3 /usr/bin/*
|
|
|
|
removefrom libcap /usr/sbin/*
|
|
|
|
removefrom libcap /usr/sbin/*
|
|
|
|
removefrom libconfig /usr/${libdir}/libconfig++*
|
|
|
|
removefrom libconfig /usr/${libdir}/libconfig++*
|
|
|
|
removefrom libcroco /usr/bin/*
|
|
|
|
removefrom libcroco /usr/bin/*
|
|
|
@ -297,12 +296,11 @@ removefrom procps /usr/bin/vmstat /usr/bin/w /usr/bin/watch
|
|
|
|
removefrom psmisc /usr/share/locale/*
|
|
|
|
removefrom psmisc /usr/share/locale/*
|
|
|
|
removefrom pygtk2 /usr/bin/* /usr/${libdir}/pygtk/*
|
|
|
|
removefrom pygtk2 /usr/bin/* /usr/${libdir}/pygtk/*
|
|
|
|
removefrom pykickstart /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom pykickstart /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom python-bugzilla /usr/bin/*
|
|
|
|
|
|
|
|
removefrom python-ethtool /usr/sbin/*
|
|
|
|
removefrom python-ethtool /usr/sbin/*
|
|
|
|
removefrom python-meh /usr/share/locale/*
|
|
|
|
removefrom python-meh /usr/share/locale/*
|
|
|
|
removefrom readline /usr/${libdir}/*
|
|
|
|
removefrom readline /usr/${libdir}/*
|
|
|
|
removefrom libreport /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom libreport /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom rpm /usr/bin/* /usr/lib/rpm/platform/* /usr/share/locale/*
|
|
|
|
removefrom rpm /usr/bin/* /usr/share/locale/*
|
|
|
|
removefrom rsync /etc/*
|
|
|
|
removefrom rsync /etc/*
|
|
|
|
removefrom sed /usr/share/locale/*
|
|
|
|
removefrom sed /usr/share/locale/*
|
|
|
|
removefrom smartmontools /etc/* /usr/sbin/smartd
|
|
|
|
removefrom smartmontools /etc/* /usr/sbin/smartd
|
|
|
@ -319,7 +317,7 @@ removefrom util-linux --allbut \
|
|
|
|
/etc/mtab /etc/pam.d/login /etc/pam.d/remote \
|
|
|
|
/etc/mtab /etc/pam.d/login /etc/pam.d/remote \
|
|
|
|
/usr/sbin/{agetty,blkid,blockdev,clock,fdisk,fsck,fstrim,hwclock,losetup} \
|
|
|
|
/usr/sbin/{agetty,blkid,blockdev,clock,fdisk,fsck,fstrim,hwclock,losetup} \
|
|
|
|
/usr/sbin/{mkswap,nologin,sfdisk,swapoff,swapon,wipefs,partx} \
|
|
|
|
/usr/sbin/{mkswap,nologin,sfdisk,swapoff,swapon,wipefs,partx} \
|
|
|
|
/usr/bin/logger
|
|
|
|
/usr/bin/{logger,hexdump}
|
|
|
|
removefrom volume_key-libs /usr/share/locale/*
|
|
|
|
removefrom volume_key-libs /usr/share/locale/*
|
|
|
|
removefrom wget /etc/* /usr/share/locale/*
|
|
|
|
removefrom wget /etc/* /usr/share/locale/*
|
|
|
|
removefrom xorg-x11-drv-intel /usr/${libdir}/libI*
|
|
|
|
removefrom xorg-x11-drv-intel /usr/${libdir}/libI*
|
|
|
|