linux-container: Improve filtering of unnecessary file systems.

* gnu/system/linux-container.scm (containerized-operating-system)[user-file-systems]:
Add trailing slash for the "/dev/" and "/sys/" prefixes.
This commit is contained in:
Ludovic Courtès 2019-05-10 18:11:25 +02:00
parent f8885ecab6
commit 76ae10a1f4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -65,8 +65,8 @@ (define user-file-systems
(string=? target "/")
(and (string? source)
(string-prefix? "/dev/" source))
(string-prefix? "/dev" target)
(string-prefix? "/sys" target))))
(string-prefix? "/dev/" target)
(string-prefix? "/sys/" target))))
(operating-system-file-systems os)))
(define (mapping->fs fs)