1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

[lxd-import] github: purge disabled/superseded snaps

This is to reclaim some space.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
(cherry picked from commit 875480ca306b421442bb7ebbce45ff2634b2cea8)
This commit is contained in:
Simon Deziel
2024-02-05 19:03:29 -05:00
committed by Stéphane Graber
parent 4802dfeb2b
commit ff1139c2ad

View File

@@ -214,6 +214,10 @@ jobs:
sudo apt-get update
sudo snap remove lxd --purge
# Purge older snap revisions that are disabled/superseded by newer revisions of the same snap
snap list --all | while read -r name _ rev _ _ notes _; do
[ "${notes}" = "disabled" ] && snap remove "${name}" --revision "${rev}" --purge
done || true
sudo apt-get autopurge moby-containerd docker uidmap -y
sudo ip link delete docker0
sudo nft flush ruleset