Browse Source

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.
version-0.15.0
Ludovic Courtès 4 years ago
parent
commit
69a05eab35
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 4
      gnu/build/file-systems.scm

4
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

Loading…
Cancel
Save