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:
Ludovic Courtès 2020-11-04 23:10:53 +01:00
parent bcf83975a3
commit 341f67991d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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