From bebcea4ae86f765f2d93c1ed41ad99772730161c Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 25 Oct 2025 15:21:55 +0200 Subject: [PATCH] feat: disable swap for alpine --- templates/cron/alpine-root.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/cron/alpine-root.j2 b/templates/cron/alpine-root.j2 index 4cbc4ad..7db847a 100644 --- a/templates/cron/alpine-root.j2 +++ b/templates/cron/alpine-root.j2 @@ -6,5 +6,8 @@ 0 3 * * 6 run-parts /etc/periodic/weekly 0 5 1 * * run-parts /etc/periodic/monthly +# disable swap +@reboot swapoff -a + # update packages between 3:15-3:30 am 15 3 * * * sleep $(($RANDOM % 900)) && apk -U upgrade >/dev/null 2>&1 && apk clean cache && reboot -d 60