Added script to Ubuntu build to remove snap packages entirely

This commit is contained in:
Gregory Ballantine 2024-04-21 12:32:29 -04:00
parent ae110e4fda
commit de5e7d31fd
2 changed files with 10 additions and 1 deletions

View File

@ -72,6 +72,9 @@ build {
sources = ["source.proxmox-iso.ubuntu-22"]
provisioner "shell" {
script = "scripts/debian-install.sh"
scripts = [
"scripts/debian-install.sh",
"scripts/remove-snap.sh"
]
}
}

6
scripts/remove-snap.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
apt purge -y snapd
rm -rf /var/lib/snap
rm -rf /root/snap