aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-11-05 09:25:59 +0100
committerLudovic Courtès <ludo@gnu.org>2014-11-05 11:25:39 +0100
commit65fb4515f028b11d41cd5f07825c86df6efac1a5 (patch)
tree2cc3824260f9f88bc73fcc4df883978903248c5d /gnu/system
parent6b464e6e5a743d3c6ba94a24c6f9f129e13722f9 (diff)
downloadpatches-65fb4515f028b11d41cd5f07825c86df6efac1a5.tar
patches-65fb4515f028b11d41cd5f07825c86df6efac1a5.tar.gz
vm: Disable swap devices in virtualized OSes.
* gnu/system/vm.scm (virtualized-operating-system): Add 'swap-devices' field.
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/vm.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 799ab51d41..d7d28a2f12 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -368,6 +368,10 @@ environment with the store shared with the host."
#:virtio? #t
#:qemu-networking? #t
rest)))
+
+ ;; Disable swap.
+ (swap-devices '())
+
(file-systems (cons* (file-system
(mount-point "/")
(device "/dev/vda1")