Skip to content
Snippets Groups Projects
Commit 65fb4515 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

vm: Disable swap devices in virtualized OSes.

* gnu/system/vm.scm (virtualized-operating-system): Add 'swap-devices'
  field.
parent 6b464e6e
No related branches found
No related tags found
No related merge requests found
...@@ -368,6 +368,10 @@ (define (virtualized-operating-system os) ...@@ -368,6 +368,10 @@ (define (virtualized-operating-system os)
#:virtio? #t #:virtio? #t
#:qemu-networking? #t #:qemu-networking? #t
rest))) rest)))
;; Disable swap.
(swap-devices '())
(file-systems (cons* (file-system (file-systems (cons* (file-system
(mount-point "/") (mount-point "/")
(device "/dev/vda1") (device "/dev/vda1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment