vm: Disable swap devices in virtualized OSes.
* gnu/system/vm.scm (virtualized-operating-system): Add 'swap-devices' field.
This commit is contained in:
		
							parent
							
								
									6b464e6e5a
								
							
						
					
					
						commit
						65fb4515f0
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue