mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
07281f7d13
Rather than reclaiming space before updating the packages do
it afterwards. This avoids issues with apt returning an
error due to missing files on the system.
This commit includes a revert for 6320b9e6
.
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14387
21 lines
377 B
Bash
Executable File
21 lines
377 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# remove 4GiB of images
|
|
sudo systemd-run docker system prune --force --all --volumes
|
|
|
|
# remove unused software
|
|
sudo systemd-run rm -rf \
|
|
"$AGENT_TOOLSDIRECTORY" \
|
|
/opt/* \
|
|
/usr/local/* \
|
|
/usr/share/az* \
|
|
/usr/share/dotnet \
|
|
/usr/share/gradle* \
|
|
/usr/share/miniconda \
|
|
/usr/share/swift \
|
|
/var/lib/gems \
|
|
/var/lib/mysql \
|
|
/var/lib/snapd
|