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.
This commit is contained in:
parent
0b1e2ecb25
commit
acc0f6bb58
1 changed files with 7 additions and 1 deletions
|
@ -177,6 +177,8 @@ made available under the /xchg CIFS share."
|
||||||
|
|
||||||
(define* (iso9660-image #:key
|
(define* (iso9660-image #:key
|
||||||
(name "iso9660-image")
|
(name "iso9660-image")
|
||||||
|
file-system-label
|
||||||
|
file-system-uuid
|
||||||
(system (%current-system))
|
(system (%current-system))
|
||||||
(qemu qemu-minimal)
|
(qemu qemu-minimal)
|
||||||
os-drv
|
os-drv
|
||||||
|
@ -211,7 +213,9 @@ INPUTS is a list of inputs (as for packages)."
|
||||||
(make-iso9660-image #$(bootloader-package bootloader)
|
(make-iso9660-image #$(bootloader-package bootloader)
|
||||||
#$bootcfg-drv
|
#$bootcfg-drv
|
||||||
#$os-drv
|
#$os-drv
|
||||||
"/xchg/guixsd.iso")
|
"/xchg/guixsd.iso"
|
||||||
|
#:volume-id #$file-system-label
|
||||||
|
#:volume-uuid #$file-system-uuid)
|
||||||
(reboot))))
|
(reboot))))
|
||||||
#:system system
|
#:system system
|
||||||
#:make-disk-image? #f
|
#:make-disk-image? #f
|
||||||
|
@ -363,6 +367,8 @@ to USB sticks meant to be read-only."
|
||||||
(bootcfg (operating-system-bootcfg os)))
|
(bootcfg (operating-system-bootcfg os)))
|
||||||
(if (string=? "iso9660" file-system-type)
|
(if (string=? "iso9660" file-system-type)
|
||||||
(iso9660-image #:name name
|
(iso9660-image #:name name
|
||||||
|
#:file-system-label root-label
|
||||||
|
#:file-system-uuid #f
|
||||||
#:os-drv os-drv
|
#:os-drv os-drv
|
||||||
#:bootcfg-drv bootcfg
|
#:bootcfg-drv bootcfg
|
||||||
#:bootloader (bootloader-configuration-bootloader
|
#:bootloader (bootloader-configuration-bootloader
|
||||||
|
|
Reference in a new issue