summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-20 07:31:53 -0300
committerEuAndreh <eu@euandre.org>2024-08-20 07:31:53 -0300
commitd827b66318dc67507f595afdcc845c157ba1821c (patch)
treef35976b9a7c6a8f09f9f9b96b7b72b5224d35e62
parentsystem.scm: Comment services that depend on go-full (diff)
downloadasami-d827b66318dc67507f595afdcc845c157ba1821c.tar.gz
asami-d827b66318dc67507f595afdcc845c157ba1821c.tar.xz
system.scm: Add "chattr +C" to /swapfile instructions
-rw-r--r--src/guix/system.scm4
1 files changed, 3 insertions, 1 deletions
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