guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d8a8dd840a94b90ad90b3a1ad903a6befe643326
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sun Oct 25 14:58:07 2026 +0900

    system: vm: Avoid unnecessary mlet*.
    
    It appears the extraneous mlet* environment could cause issues, such as the
    one marked as fixed below, although I haven't investigated the exact 
reasons.
    
    * gnu/system/vm.scm (system-qemu-image/shared-store-script): Replace mlet* 
by
    a simple let*.
    
    Fixes: #12085
---
 gnu/system/vm.scm | 35 ++++++++++++++++-------------------
 1 file changed, 16 insertions(+), 19 deletions(-)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index 51957e417fb..677e0132203 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -31,11 +31,8 @@
 
 (define-module (gnu system vm)
   #:use-module (guix config)
-  #:use-module (guix store)
   #:use-module (guix gexp)
-  #:use-module (guix derivations)
   #:use-module (guix packages)
-  #:use-module (guix monads)
   #:use-module (guix records)
   #:use-module (guix modules)
   #:use-module (guix utils)
@@ -293,22 +290,22 @@ VOLATILE? is true, an overlay is created on top of a 
read-only
 storage. Otherwise the storage is made persistent.  The DISK-IMAGE-SIZE
 parameter specifies the size in bytes of the root disk image; it is mostly
 useful when FULL-BOOT?  is true."
-  (mlet* %store-monad ((os ->  (virtualized-operating-system
-                                os mappings
-                                #:spice? spice
-                                #:full-boot? full-boot?
-                                #:volatile? volatile?
-                                #:system system
-                                #:target target))
-                       (base-image -> (system-image
-                                       (image
-                                        (inherit
-                                         (raw-with-offset-disk-image))
-                                        (operating-system os)
-                                        (size disk-image-size)
-                                        (shared-store?
-                                         (and (not full-boot?) volatile?))
-                                        (volatile-root? volatile?)))))
+  (let* ((os (virtualized-operating-system
+              os mappings
+              #:spice? spice
+              #:full-boot? full-boot?
+              #:volatile? volatile?
+              #:system system
+              #:target target))
+         (base-image (system-image
+                      (image
+                        (inherit
+                         (raw-with-offset-disk-image))
+                        (operating-system os)
+                        (size disk-image-size)
+                        (shared-store?
+                         (and (not full-boot?) volatile?))
+                        (volatile-root? volatile?)))))
     (define kernel-arguments
       #~(list #$@(if graphic? #~() #~("console=ttyS0"))
               #$@(operating-system-kernel-arguments os "/dev/vda1")))

Reply via email to