install2: Added INSTALL2_CLEANUP_DRI

Cleanup dri is still needed for servers.
Reported-by: shaba@
Also-see: 576a58d1c6
This commit is contained in:
Anton Midyukov 2020-09-15 09:56:00 +07:00
parent 5182e86c4f
commit f51305ce07
2 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -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*