guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: services: hurd-vm: Respect hurd-vm-configuration'


From: guix-commits
Subject: branch master updated: services: hurd-vm: Respect hurd-vm-configuration's disk-size.
Date: Thu, 14 Jan 2021 14:21:24 -0500

This is an automated email from the git hooks/post-receive script.

janneke pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 5b785b2  services: hurd-vm: Respect hurd-vm-configuration's disk-size.
5b785b2 is described below

commit 5b785b2a62b885a65aeece1399f7e3a732dd1cea
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Jan 14 19:02:09 2021 +0100

    services: hurd-vm: Respect hurd-vm-configuration's disk-size.
    
    This is a follow-up to commit 859b362f81598830d7ff276b96a8724aee3c4db7.
    
    * gnu/services/virtualization.scm (hurd-vm-disk-image): Use diks-size from
    config to set image's size.
---
 gnu/services/virtualization.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index f435630..f8d413d 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com>
 ;;; Copyright © 2018, 2020 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020,2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -917,7 +917,9 @@ is added to the OS specified in CONFIG."
          (disk-size (hurd-vm-configuration-disk-size config))
          (type      (lookup-image-type-by-name 'hurd-qcow2))
          (os->image (image-type-constructor type)))
-    (system-image (os->image os))))
+    (system-image
+     (image (inherit (os->image os))
+            (size disk-size)))))
 
 (define (hurd-vm-port config base)
   "Return the forwarded vm port for this childhurd config."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]