[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: machine: ssh: Fix sanity checks.
From: |
guix-commits |
Subject: |
01/01: machine: ssh: Fix sanity checks. |
Date: |
Sat, 17 Aug 2019 08:47:34 -0400 (EDT) |
iyzsong pushed a commit to branch master
in repository guix.
commit 02460db0474ff5ac0d867ed6d5b192c062af0abc
Author: 宋文武 <address@hidden>
Date: Sat Aug 17 20:26:58 2019 +0800
machine: ssh: Fix sanity checks.
* gnu/machine/ssh.scm
(machine-check-file-system-availability)[check-labeled-file-system]: Use
'source-module-closure' for '(gnu build file-systems)'.
(machine-check-initrd-modules): Unquote 'file-system-label->string' instead
of
'device'.
---
gnu/machine/ssh.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm
index aafe0cc..6e3ed0e 100644
--- a/gnu/machine/ssh.scm
+++ b/gnu/machine/ssh.scm
@@ -166,7 +166,8 @@ MACHINE's 'system' declaration do not exist on the machine."
(define (check-labeled-file-system fs)
(define remote-exp
- (with-imported-modules '((gnu build file-systems))
+ (with-imported-modules (source-module-closure
+ '((gnu build file-systems)))
#~(begin
(use-modules (gnu build file-systems))
(find-partition-by-label #$(file-system-label->string
@@ -243,7 +244,7 @@ MACHINE's 'system' declaration do not exist on the machine."
#$(uuid->string device))))
((file-system-label? device)
#~(find-partition-by-label
- (file-system-label->string #$device)))))
+ #$(file-system-label->string device)))))
(missing-modules dev '#$(operating-system-initrd-modules
(machine-operating-system machine)))))))