oem: Added use/oem/no-cleanup

This target disable cleanup install packages after finishing
alterator-setup.
This commit is contained in:
Anton Midyukov 2020-10-01 21:01:29 +07:00
parent 81c21c7e2a
commit b91fe5a29f
2 changed files with 9 additions and 0 deletions

View File

@ -7,9 +7,13 @@ use/oem: use/services use/branding
@$(call try,OEM_TARGET,setup)
@$(call add,DEFAULT_SERVICES_ENABLE,$$(OEM_TARGET))
@$(call xport,OEM_TARGET)
@$(call xport,OEM_NO_CLEANUP)
use/oem/vnc: use/oem use/x11-vnc use/net-eth/dhcp
@$(call add,THE_PACKAGES,alterator-setup-x11vnc)
@$(call set,OEM_TARGET,setup-vnc)
@$(call set,NMCTL,no)
@$(call xport,NMCTL)
use/oem/no-cleanup: use/oem
@$(call set,OEM_NO_CLEANUP,yes)

View File

@ -9,4 +9,9 @@ TARGET=/lib/systemd/system/$GLOBAL_OEM_TARGET.target
echo "LANG=en_US.utf-8" >> /etc/sysconfig/i18n
# Disable cleanup alterator-setup
[ ! "$GLOBAL_OEM_NO_CLEANUP" = yes ] ||
sed -i 's/^REMOVE_SELF=.*/REMOVE_SELF=0/' /etc/alterator-setup/config
cat /etc/alterator-setup/config
: