diff options
Diffstat (limited to 'gnu/machine/ssh.scm')
| -rw-r--r-- | gnu/machine/ssh.scm | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm index 4e31baa4b96..ee5032e2810 100644 --- a/gnu/machine/ssh.scm +++ b/gnu/machine/ssh.scm | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #:use-module (gnu bootloader) | 21 | #:use-module (gnu bootloader) |
| 22 | #:use-module (gnu machine) | 22 | #:use-module (gnu machine) |
| 23 | #:autoload (gnu packages gnupg) (guile-gcrypt) | 23 | #:autoload (gnu packages gnupg) (guile-gcrypt) |
| 24 | #:autoload (gnu packages guile) (guile-zlib) | ||
| 24 | #:use-module (gnu system) | 25 | #:use-module (gnu system) |
| 25 | #:use-module (gnu system file-systems) | 26 | #:use-module (gnu system file-systems) |
| 26 | #:use-module (gnu system uuid) | 27 | #:use-module (gnu system uuid) |
| @@ -248,22 +249,24 @@ not available in the initrd." | |||
| 248 | '((gnu build file-systems) | 249 | '((gnu build file-systems) |
| 249 | (gnu build linux-modules) | 250 | (gnu build linux-modules) |
| 250 | (gnu system uuid))) | 251 | (gnu system uuid))) |
| 251 | #~(begin | 252 | (with-extensions (list guile-zlib) |
| 252 | (use-modules (gnu build file-systems) | 253 | #~(begin |
| 253 | (gnu build linux-modules) | 254 | (use-modules (gnu build file-systems) |
| 254 | (gnu system uuid)) | 255 | (gnu build linux-modules) |
| 255 | 256 | (gnu system uuid)) | |
| 256 | (define dev | 257 | |
| 257 | #$(cond ((string? device) device) | 258 | (define dev |
| 258 | ((uuid? device) #~(find-partition-by-uuid | 259 | #$(cond ((string? device) device) |
| 259 | (string->uuid | 260 | ((uuid? device) #~(find-partition-by-uuid |
| 260 | #$(uuid->string device)))) | 261 | (string->uuid |
| 261 | ((file-system-label? device) | 262 | #$(uuid->string device)))) |
| 262 | #~(find-partition-by-label | 263 | ((file-system-label? device) |
| 263 | #$(file-system-label->string device))))) | 264 | #~(find-partition-by-label |
| 264 | 265 | #$(file-system-label->string device))))) | |
| 265 | (missing-modules dev '#$(operating-system-initrd-modules | 266 | |
| 266 | (machine-operating-system machine))))))) | 267 | (missing-modules dev |
| 268 | '#$(operating-system-initrd-modules | ||
| 269 | (machine-operating-system machine)))))))) | ||
| 267 | 270 | ||
| 268 | (remote-let ((missing remote-exp)) | 271 | (remote-let ((missing remote-exp)) |
| 269 | (unless (null? missing) | 272 | (unless (null? missing) |
