From d827b66318dc67507f595afdcc845c157ba1821c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 20 Aug 2024 07:31:53 -0300 Subject: system.scm: Add "chattr +C" to /swapfile instructions --- src/guix/system.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/guix/system.scm b/src/guix/system.scm index 5260110..9321de3 100644 --- a/src/guix/system.scm +++ b/src/guix/system.scm @@ -142,7 +142,9 @@ (swap-devices (list (swap-space - ;; # rm /swapfile + ;; # rm -f /swapfile + ;; # truncate -s 0 /swapfile + ;; # chattr +C /swapfile ;; # fallocate -l 8G /swapfile ;; # chmod 600 /swapfile ;; # mkswap /swapfile -- cgit v1.2.3