From 1e65a52c5e7bfe3cc2bb913e2b247a4100bfafc8 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Sat, 22 Mar 2014 22:03:17 +0400 Subject: [PATCH] install2: cleanup everything too This destructive target is like a "people's revolution": almost nothing left. Some need this to achieve jeos or chaos, respectively. --- features.in/install2/config.mk | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/features.in/install2/config.mk b/features.in/install2/config.mk index 94a97d3c..515b0218 100644 --- a/features.in/install2/config.mk +++ b/features.in/install2/config.mk @@ -69,3 +69,45 @@ use/install2/cleanup/x11-hwdrivers: @$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-r128 xorg-drv-radeon) @$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-s3virge xorg-drv-savage) @$(call add,INSTALL2_CLEANUP_PACKAGES,xorg-drv-sis) + +# massive purge of anything not critical to installer boot (l10n included!) +use/install2/cleanup/everything: use/install2/cleanup/x11-hwdrivers \ + use/install2/cleanup/vnc use/install2/cleanup/crypto + @$(call add,INSTALL2_CLEANUP_PACKAGES,glibc-gconv-modules glibc-locales) + @$(call add,INSTALL2_CLEANUP_PACKAGES,libX11-locales alterator-l10n) + @$(call add,INSTALL2_CLEANUP_PACKAGES,kbd-data kbd console-scripts) + @$(call add,INSTALL2_CLEANUP_PACKAGES,shadow-convert) + @$(call add,INSTALL2_CLEANUP_PACKAGES,libXaw xmessage xconsole) + @$(call add,INSTALL2_CLEANUP_PACKAGES,libncurses libncursesw) # top + @$(call add,INSTALL2_CLEANUP_PACKAGES,openssl) # net-functions + @$(call add,INSTALL2_CLEANUP_PACKAGES,vitmp vim-minimal) + @$(call add,INSTALL2_CLEANUP_PACKAGES,udev-hwdb pciids) + +# this conflicts with efi (which needs efivars.ko) +use/install2/cleanup/kernel/firmware: + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firmware/) + +# drop drivers expected to be useless in virtual environment +use/install2/cleanup/kernel/non-vm: + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/firewire/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/bonding/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/ppp/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/slip/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/team/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/net/usb/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/platform/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/tty/serial/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/bridge/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/net/openvswitch/) + +# this would need extra handling anyways +use/install2/cleanup/kernel/storage: + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/aoe/) + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/block/drbd/) + +# burn it down +use/install2/cleanup/kernel/everything: \ + use/install2/cleanup/kernel/storage \ + use/install2/cleanup/kernel/non-vm \ + use/install2/cleanup/kernel/firmware + @$(call add,INSTALL2_CLEANUP_KDRIVERS,kernel/drivers/ata/pata_*)