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 /guix | |
parent | cc9b889e8f285719645b5a86f2583d7f1b2aef01 (diff) | |
download | patches-99e676db43389af3a9e4c21734987c086fcaa8ed.tar patches-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 'guix')
-rw-r--r-- | guix/scripts/system.scm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index b5e3a5630e..ac2475c551 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -517,12 +517,7 @@ list of services." (cond ((uuid? root-device) 0) ((file-system-label? root-device) 1) (else 2)) - (cond ((uuid? root-device) - (uuid->string root-device)) - ((file-system-label? root-device) - (file-system-label->string root-device)) - (else - root-device))) + (file-system-device->string root-device)) (format #t (G_ " kernel: ~a~%") kernel) |