aboutsummaryrefslogtreecommitdiff
path: root/gnu/build
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-05-31 16:52:01 +0200
committerLudovic Courtès <ludo@gnu.org>2018-05-31 18:13:08 +0200
commit69a05eab355f410e38ffd69007b9b8d740d92b59 (patch)
tree225c4f6cdba9d91a35534901a54e36edb5c325ff /gnu/build
parente13240f598d8e89eeb1fbf34fd94f49d6bf0b7a4 (diff)
downloadgnu-guix-69a05eab355f410e38ffd69007b9b8d740d92b59.tar
gnu-guix-69a05eab355f410e38ffd69007b9b8d740d92b59.tar.gz
file-systems: Always wait for devices to show up.
Previously, 'canonicalize-device-spec' would wait for devices when they were specified as a label or UUID, but would not wait when the user passed a "/dev" file name directly. This could cause problems when the /dev node takes a while to show up. * gnu/build/file-systems.scm (canonicalize-device-spec): Add 'resolve' call in the 'string?' case.
Diffstat (limited to 'gnu/build')
-rw-r--r--gnu/build/file-systems.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm
index 3dd7358fd3..3f97afeedd 100644
--- a/gnu/build/file-systems.scm
+++ b/gnu/build/file-systems.scm
@@ -499,8 +499,8 @@ were found."
(match spec
((? string?)
- ;; Nothing to do.
- spec)
+ ;; Nothing to do, but wait until SPEC shows up.
+ (resolve identity spec identity))
((? file-system-label?)
;; Resolve the label.
(resolve find-partition-by-label