me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 4 additions and 1 deletions

View File

@ -641,7 +641,10 @@ of the GNU system as described by OS."
(let ((target (file-system-mount-point fs)) (let ((target (file-system-mount-point fs))
(source (file-system-device fs))) (source (file-system-device fs)))
(or (string=? target "/") (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))) (operating-system-file-systems os)))
(define root-uuid (define root-uuid