Skip to content
Snippets Groups Projects
Commit 1f1ff6a0 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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?'.
parent 6eb43907
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,8 @@ (define user-file-systems ...@@ -57,7 +57,8 @@ (define user-file-systems
(source (file-system-device fs))) (source (file-system-device fs)))
(or (string=? target (%store-prefix)) (or (string=? target (%store-prefix))
(string=? target "/") (string=? target "/")
(string-prefix? "/dev/" source) (and (string? source)
(string-prefix? "/dev/" source))
(string-prefix? "/dev" target) (string-prefix? "/dev" target)
(string-prefix? "/sys" target)))) (string-prefix? "/sys" target))))
(operating-system-file-systems os))) (operating-system-file-systems os)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment