~ruther/guix-local

65fb4515f028b11d41cd5f07825c86df6efac1a5 — Ludovic Courtès 11 years ago 6b464e6
vm: Disable swap devices in virtualized OSes.

* gnu/system/vm.scm (virtualized-operating-system): Add 'swap-devices'
  field.
1 files changed, 4 insertions(+), 0 deletions(-)

M gnu/system/vm.scm
M gnu/system/vm.scm => gnu/system/vm.scm +4 -0
@@ 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")