From 01b2316d13f2abc16c5c387ffce04d84fa143e4d Mon Sep 17 00:00:00 2001 From: stb Date: Sat, 4 Nov 2023 16:26:22 +0100 Subject: [PATCH] Hold back grub to avoid issue during apt dist-upgrade --- README.md | 2 +- build-proxmox-template | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb61f7d..fc66d56 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The script expects `authorized_keys` to be in the current directory. Copy the co ### Run the Script ```shell -./build-proxmox-template +sudo ./build-proxmox-template ``` ## Cloning the Template diff --git a/build-proxmox-template b/build-proxmox-template index 8d76f61..f20b39f 100755 --- a/build-proxmox-template +++ b/build-proxmox-template @@ -15,6 +15,7 @@ set -e virt-builder ${OS} -o ${NAME}.qcow2 --format qcow2 \ --root-password disabled \ + --run-command 'echo grub-pc hold | dpkg --set-selections' \ --update \ --run-command 'apt dist-upgrade -y' \ --install cloud-init,qemu-guest-agent \