diff --git a/features.in/install2/config.mk b/features.in/install2/config.mk index 157adbb3..48563b27 100644 --- a/features.in/install2/config.mk +++ b/features.in/install2/config.mk @@ -125,6 +125,11 @@ use/install2/tools: use/install2/cleanup/vnc: @$(call add,INSTALL2_CLEANUP_PACKAGES,x11vnc xorg-xvfb) +# when VNC installation is less welcome than a few extra megs +use/install2/cleanup/dri: + @$(call set,INSTALL2_CLEANUP_DRI,yes) + @$(call xport,INSTALL2_CLEANUP_DRI) + # conflicts with luks feature use/install2/cleanup/crypto: @$(call add,INSTALL2_CLEANUP_PACKAGES,gnupg) diff --git a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-drivers b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-drivers index 06c81782..4860a6d6 100755 --- a/features.in/install2/install2/image-scripts.d/90-install2-cleanup-drivers +++ b/features.in/install2/install2/image-scripts.d/90-install2-cleanup-drivers @@ -1,6 +1,11 @@ #!/bin/sh # drop extra drivers et al, purge kernel image(s) +# xorg-dri-* +if [ "$GLOBAL_INSTALL2_CLEANUP_DRI" = 'yes' ]; then + rm -r /usr/lib*/X11/modules/dri +fi + # no movies during installation so far rm -rf /usr/lib*/vdpau/ /usr/lib*/libXv*