summaryrefslogtreecommitdiff
path: root/src/guix/system.scm
diff options
context:
space:
mode:
Diffstat (limited to 'src/guix/system.scm')
-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