mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
vm: system-qemu-image: Fix type error, remove more actual file systems.
* gnu/system/vm.scm (system-qemu-image)[file-systems-to-keep]: Check whether SOURCE is a string before calling 'string-prefix?'. Remove UUIDs and file system labels as well.
This commit is contained in:
parent
bcf83975a3
commit
341f67991d
1 changed files with 4 additions and 1 deletions
|
@ -641,7 +641,10 @@ (define file-systems-to-keep
|
|||
(let ((target (file-system-mount-point fs))
|
||||
(source (file-system-device fs)))
|
||||
(or (string=? target "/")
|
||||
(string-prefix? "/dev/" source))))
|
||||
(and (string? source)
|
||||
(string-prefix? "/dev/" source))
|
||||
(uuid? source)
|
||||
(file-system-label? source))))
|
||||
(operating-system-file-systems os)))
|
||||
|
||||
(define root-uuid
|
||||
|
|
Loading…
Reference in a new issue