mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-12 18:43:15 -06:00
try new remove strategy
This commit is contained in:
parent
756075cd92
commit
083863d958
1 changed files with 8 additions and 5 deletions
13
.github/actions/clean-disk/action.yml
vendored
13
.github/actions/clean-disk/action.yml
vendored
|
@ -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/ \
|
||||
|
|
Loading…
Reference in a new issue