From 37a0a88e51158fc13fd97e73dd950b169c9253db Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 15 Apr 2024 16:15:09 +0200 Subject: [PATCH] fix: add min swapfile to avoid bootstrap issues --- 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 b769c5f..c9fa10b 100644 --- a/rocky-9/data/init.ks.pkrtpl.hcl +++ b/rocky-9/data/init.ks.pkrtpl.hcl @@ -128,6 +128,11 @@ grubby ### 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 -- 2.45.2