From 1b50bc898c1ac739f06ec27f264b40c317e38612 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Apr 2024 16:40:27 +0200 Subject: [PATCH] fix: add min swapfile to avoid bootstrap issues (#9) Reviewed-on: https://gitea.rknet.org/infra/packer-proxmox/pulls/9 Co-authored-by: Robert Kaussow Co-committed-by: Robert Kaussow --- rocky-9/data/init.ks.pkrtpl.hcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rocky-9/data/init.ks.pkrtpl.hcl b/rocky-9/data/init.ks.pkrtpl.hcl index c7c4c79..fa1203a 100644 --- a/rocky-9/data/init.ks.pkrtpl.hcl +++ b/rocky-9/data/init.ks.pkrtpl.hcl @@ -126,6 +126,11 @@ jq ### Post-installation commands. %post +dd if=/dev/zero of=/swapfile bs=1M count=1000 +chmod 600 /swapfile +mkswap /swapfile +echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab + dnf makecache dnf install -y epel-release dnf makecache