guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: guix system: Add file system label and uuid to iso9660-image.


From: Danny Milosavljevic
Subject: 01/01: guix system: Add file system label and uuid to iso9660-image.
Date: Fri, 7 Jul 2017 12:06:50 -0400 (EDT)

dannym pushed a commit to branch master
in repository guix.

commit acc0f6bb5885e661a406a367a9543debc455221a
Author: Danny Milosavljevic <address@hidden>
Date:   Mon Jul 3 19:57:50 2017 +0200

    guix system: Add file system label and uuid to iso9660-image.
    
    * gnu/system/vm.scm (system-disk-image): Pass root-label to ...
    (iso9660-image): ... here.  Add keyword arguments #:file-system-label
    and #:file-system-uuid.
---
 gnu/system/vm.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm
index f1c650c..3e722d0 100644
--- a/gnu/system/vm.scm
+++ b/gnu/system/vm.scm
@@ -177,6 +177,8 @@ made available under the /xchg CIFS share."
 
 (define* (iso9660-image #:key
                         (name "iso9660-image")
+                        file-system-label
+                        file-system-uuid
                         (system (%current-system))
                         (qemu qemu-minimal)
                         os-drv
@@ -211,7 +213,9 @@ INPUTS is a list of inputs (as for packages)."
            (make-iso9660-image #$(bootloader-package bootloader)
                                #$bootcfg-drv
                                #$os-drv
-                               "/xchg/guixsd.iso")
+                               "/xchg/guixsd.iso"
+                               #:volume-id #$file-system-label
+                               #:volume-uuid #$file-system-uuid)
            (reboot))))
    #:system system
    #:make-disk-image? #f
@@ -363,6 +367,8 @@ to USB sticks meant to be read-only."
                          (bootcfg  (operating-system-bootcfg os)))
       (if (string=? "iso9660" file-system-type)
           (iso9660-image #:name name
+                         #:file-system-label root-label
+                         #:file-system-uuid #f
                          #:os-drv os-drv
                          #:bootcfg-drv bootcfg
                          #:bootloader (bootloader-configuration-bootloader



reply via email to

[Prev in Thread] Current Thread [Next in Thread]