diff --git a/Ubuntu-22/ubuntu-22.pkr.hcl b/Ubuntu-22/ubuntu-22.pkr.hcl index 9c0c4d8..c76e9f1 100644 --- a/Ubuntu-22/ubuntu-22.pkr.hcl +++ b/Ubuntu-22/ubuntu-22.pkr.hcl @@ -21,10 +21,7 @@ source "proxmox-iso" "ubuntu-22" { # Go to the end of the boot command " ", - # Add kernel command-line and start install - "linux ", - "/casper/vmlinuz ", - "--- ", + # Add kernel command-line to start autoinstall "autoinstall ", "ds=\"nocloud-net;seedfrom=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ubuntu-22/\"", "x" diff --git a/scripts/remove-snap.sh b/scripts/remove-snap.sh index 6145ada..70a8625 100644 --- a/scripts/remove-snap.sh +++ b/scripts/remove-snap.sh @@ -1,6 +1,6 @@ #!/bin/sh -apt purge -y snapd +sudo apt purge -y snapd -rm -rf /var/lib/snap -rm -rf /root/snap +sudo rm -rf /var/lib/snap +sudo rm -rf /root/snap