diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-11-05 09:25:59 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-11-05 11:25:39 +0100 |
commit | 65fb4515f028b11d41cd5f07825c86df6efac1a5 (patch) | |
tree | 2cc3824260f9f88bc73fcc4df883978903248c5d /gnu/system | |
parent | 6b464e6e5a743d3c6ba94a24c6f9f129e13722f9 (diff) |
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.scm | 4 |
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") |