vm: Print the label and UUID of partitions.
authorLudovic Courtès <ludo@gnu.org>
Wed, 23 May 2018 08:14:20 +0000 (10:14 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 23 May 2018 08:21:02 +0000 (10:21 +0200)
* gnu/build/vm.scm (create-ext-file-system): Print the label and UUID.

gnu/build/vm.scm

index 527b4c4..989b74f 100644 (file)
@@ -265,7 +265,8 @@ actual /dev name based on DEVICE."
                                  #:key label uuid)
   "Create an ext-family file system of TYPE on PARTITION.  If LABEL is true,
 use that as the volume name.  If UUID is true, use it as the partition UUID."
-  (format #t "creating ~a partition...\n" type)
+  (format #t "creating ~a partition... ~@[label: ~s~] ~@[uuid: ~s~]\n"
+          type label (and uuid (uuid->string uuid)))
   (apply invoke (string-append "mkfs." type)
          "-F" partition
          `(,@(if label