diff --git a/debian12/packer.pkr.hcl b/debian12/packer.pkr.hcl index eb8fa90..968380d 100644 --- a/debian12/packer.pkr.hcl +++ b/debian12/packer.pkr.hcl @@ -98,6 +98,7 @@ source "proxmox-iso" "template" { format = "${var.proxmox_storage_format}" storage_pool = "${var.proxmox_storage_pool}" type = "virtio" + cache_mode = "unsafe" } # networking diff --git a/scripts/ubuntu24.sh b/scripts/ubuntu24.sh index f096d18..7005f79 100644 --- a/scripts/ubuntu24.sh +++ b/scripts/ubuntu24.sh @@ -2,9 +2,9 @@ # update the guest echo '> Updating the guest ...' -sudo -u root apt update -sudo -u root DEBIAN_FRONTEND=noninteractive apt -y upgrade -sudo -u root apt autoremove -y +sudo -u root apt-get update +sudo -u root DEBIAN_FRONTEND=noninteractive apt-get -y upgrade +sudo -u root apt-get autoremove -y # install rc.local script cat << 'EOL' | sudo tee /etc/rc.local @@ -53,7 +53,7 @@ sudo -u root hostnamectl set-hostname localhost # cleans apt. echo '> cleaning apt-get ...' -sudo -u root apt clean +sudo -u root apt-get clean # cleans the machine-id echo '> cleaning the machine-id ...' diff --git a/ubuntu24/packer.pkr.hcl b/ubuntu24/packer.pkr.hcl index 4800636..4635f98 100644 --- a/ubuntu24/packer.pkr.hcl +++ b/ubuntu24/packer.pkr.hcl @@ -98,6 +98,7 @@ source "proxmox-iso" "template" { format = "${var.proxmox_storage_format}" storage_pool = "${var.proxmox_storage_pool}" type = "virtio" + cache_mode = "unsafe" } # networking