guix-commits
[Top][All Lists]
Advanced

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

01/05: guix system: Inline menu-entries in to bootcfg in perform-action.


From: guix-commits
Subject: 01/05: guix system: Inline menu-entries in to bootcfg in perform-action.
Date: Thu, 23 Jun 2022 08:01:57 -0400 (EDT)

cbaines pushed a commit to branch master
in repository guix.

commit 9d30cfa3372cccc847e75038d34c4ea5b8d8b241
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jun 20 12:33:57 2022 +0100

    guix system: Inline menu-entries in to bootcfg in perform-action.
    
    This avoids an exception when generating images, where the reading of boot
    parameters fails.
    
    * guix/scripts/system.scm (perform-action): Inline menu-entries in to 
bootcfg.
---
 guix/scripts/system.scm | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 63e3b9b934..b9084a401c 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -800,11 +800,6 @@ static checks."
   (define println
     (cut format #t "~a~%" <>))
 
-  (define menu-entries
-    (if (eq? 'init action)
-        '()
-        (map boot-parameters->menu-entry (profile-boot-parameters))))
-
   (define os
     (image-operating-system image))
 
@@ -813,7 +808,11 @@ static checks."
 
   (define bootcfg
     (and (memq action '(init reconfigure))
-         (operating-system-bootcfg os menu-entries)))
+         (operating-system-bootcfg
+          os
+          (if (eq? action 'init)
+              '()
+              (map boot-parameters->menu-entry (profile-boot-parameters))))))
 
   (when (eq? action 'reconfigure)
     (maybe-suggest-running-guix-pull)



reply via email to

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