Added script to Ubuntu build to remove snap packages entirely
This commit is contained in:
parent
ae110e4fda
commit
de5e7d31fd
@ -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
6
scripts/remove-snap.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
apt purge -y snapd
|
||||
|
||||
rm -rf /var/lib/snap
|
||||
rm -rf /root/snap
|
Loading…
Reference in New Issue
Block a user