diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-02-11 23:56:45 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-03-02 23:24:47 -0500 |
commit | 99e676db43389af3a9e4c21734987c086fcaa8ed (patch) | |
tree | 2024a396465edd8746d7837d27e3e22bed635d86 /gnu/system/vm.scm | |
parent | cc9b889e8f285719645b5a86f2583d7f1b2aef01 (diff) | |
download | guix-99e676db43389af3a9e4c21734987c086fcaa8ed.tar.gz |
file-systems: Add a 'file-system-device->string' procedure.
* gnu/system/file-systems.scm (file-system-device->string): New procedure. * gnu/system.scm (bootable-kernel-arguments): Use it. * gnu/system/vm.scm (operating-system-uuid): Likewise. * guix/scripts/system.scm (display-system-generation): Likewise.
Diffstat (limited to 'gnu/system/vm.scm')
-rw-r--r-- | gnu/system/vm.scm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index 81b2e06ba2..03a511cdde 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -609,13 +609,7 @@ TYPE (one of 'iso9660 or 'dce). Return a UUID object." (let ((device (file-system-device fs))) (list (file-system-mount-point fs) (file-system-type fs) - (cond ((file-system-label? device) - (file-system-label->string device)) - ((uuid? device) - (uuid->string device)) - ((string? device) - device) - (else #f)) + (file-system-device->string device) (file-system-options fs)))) (if (eq? type 'iso9660) |