diff options
author | Philip H <47042125+pheiduck@users.noreply.github.com> | 2024-01-31 20:04:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 20:04:22 +0100 |
commit | 0a3d36968737ad70bf234b6cc438230911b14f9c (patch) | |
tree | a7e8607d8b8c98584760686d056f7e8cd073fc51 /ci | |
parent | 28db30ddb1ea458dd1826babe479ec2bf54b1ed6 (diff) |
CI: get rid of snap and speed up CI (#13938)
Signed-off-by: Philip H <47042125+pheiduck@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'ci')
-rw-r--r-- | ci/remove_snap.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/remove_snap.sh b/ci/remove_snap.sh new file mode 100644 index 0000000000..a812307d3b --- /dev/null +++ b/ci/remove_snap.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh +pushd /etc/apt/preferences.d/ +cat > nosnap.pref <<EOF +# To prevent repository packages from triggering the installation of snap, +# this file forbids snapd from being installed by APT. + +Package: snapd +Pin: release a=* +Pin-Priority: -10 +EOF +popd +snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}') +apt-get purge -y snapd |