From 65fb4515f028b11d41cd5f07825c86df6efac1a5 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 5 Nov 2014 09:25:59 +0100 Subject: vm: Disable swap devices in virtualized OSes. * gnu/system/vm.scm (virtualized-operating-system): Add 'swap-devices' field. --- gnu/system/vm.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gnu/system') 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") -- cgit v1.2.3