Browse Source

linux-container: Accept file systems with a UUID 'source'.

* gnu/system/linux-container.scm (containerized-operating-system)[user-file-systems]:
Check whether SOURCE is a string before calling 'string-prefix?'.
wip-mediagoblin
Ludovic Courtès 6 years ago
parent
commit
1f1ff6a0e7
  1. 3
      gnu/system/linux-container.scm

3
gnu/system/linux-container.scm

@ -57,7 +57,8 @@ containerized OS."
(source (file-system-device fs)))
(or (string=? target (%store-prefix))
(string=? target "/")
(string-prefix? "/dev/" source)
(and (string? source)
(string-prefix? "/dev/" source))
(string-prefix? "/dev" target)
(string-prefix? "/sys" target))))
(operating-system-file-systems os)))

Loading…
Cancel
Save