try new remove strategy

This commit is contained in:
Daylin Morgan 2024-09-17 11:52:08 -05:00
parent 756075cd92
commit 083863d958
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -34,11 +34,14 @@ runs:
echo "Removing unwanted software... "
# if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
# sudo apt-get purge \
# --allow-remove-essential \
# $(non_manifest_packages) # > /dev/null
# fi
if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
# sudo apt-get purge \
# --allow-remove-essential \
# $(non_manifest_packages) # > /dev/null
# Remove all packages that are not required by the base system:
sudo apt-get remove $(comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u))
fi
sudo rm -rf \
/var/lib/docker/ \