fix: add min swapfile to avoid bootstrap issues (#7)
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details

Reviewed-on: #7
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2024-04-15 16:40:22 +02:00 committed by Robert Kaussow
parent 54825bc7b7
commit 1b231a09a9
1 changed files with 5 additions and 0 deletions

View File

@ -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