vm: Filter out file systems that refer to UUIDs or labels.
* gnu/system/vm.scm (virtualized-operating-system)[user-file-systems]: Filter out things that refer to file system UUIDs or labels.
This commit is contained in:
parent
1d0865c19a
commit
f00515b483
|
@ -554,7 +554,13 @@ environment with the store shared with the host. MAPPINGS is a list of
|
||||||
(or (string=? target (%store-prefix))
|
(or (string=? target (%store-prefix))
|
||||||
(string=? target "/")
|
(string=? target "/")
|
||||||
(and (eq? 'device (file-system-title fs))
|
(and (eq? 'device (file-system-title fs))
|
||||||
(string-prefix? "/dev/" source)))))
|
(string-prefix? "/dev/" source))
|
||||||
|
|
||||||
|
;; Labels and UUIDs are necessarily invalid in the VM.
|
||||||
|
(and (file-system-mount? fs)
|
||||||
|
(or (eq? 'label (file-system-title fs))
|
||||||
|
(eq? 'uuid (file-system-title fs))
|
||||||
|
(uuid? source))))))
|
||||||
(operating-system-file-systems os)))
|
(operating-system-file-systems os)))
|
||||||
|
|
||||||
(define virtual-file-systems
|
(define virtual-file-systems
|
||||||
|
|
Loading…
Reference in New Issue