guix-commits
[Top][All Lists]
Advanced

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

branch master updated: guix system: Skip initrd modules check when using


From: guix-commits
Subject: branch master updated: guix system: Skip initrd modules check when using --target.
Date: Wed, 21 Dec 2022 14:22:42 -0500

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

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 30465558bd guix system: Skip initrd modules check when using --target.
30465558bd is described below

commit 30465558bd2ac1863013fd8382c0fc6b2233acc3
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Dec 8 23:27:57 2022 -0500

    guix system: Skip initrd modules check when using --target.
    
    * guix/scripts/system.scm (perform-action): Do not call CHECK-INITRD-MODULES
    when the %current-target-system parameter is set.
---
 guix/scripts/system.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 6482318168..6fd915cb5e 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -842,7 +842,10 @@ static checks."
     (check-mapped-devices os)
     (when (zero? (getuid))
       (check-file-system-availability (operating-system-file-systems os))
-      (check-initrd-modules os)))
+      (unless (%current-target-system)
+        ;; Skip the check if the user is making use of --target, as it cannot
+        ;; be checked against the running kernel.
+        (check-initrd-modules os))))
 
   (mlet* %store-monad
       ((sys       (system-derivation-for-action image action



reply via email to

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