mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
vm: Use a deterministic file system UUID in shared-store VMs.
* gnu/system/vm.scm (system-qemu-image/shared-store): Pass #:file-system-uuid to 'qemu-image'.
This commit is contained in:
parent
353df40102
commit
56f9d442e0
1 changed files with 5 additions and 0 deletions
|
@ -752,6 +752,10 @@ (define* (system-qemu-image/shared-store
|
|||
When FULL-BOOT? is true, return an image that does a complete boot sequence,
|
||||
bootloaded included; thus, make a disk image that contains everything the
|
||||
bootloader refers to: OS kernel, initrd, bootloader data, etc."
|
||||
(define root-uuid
|
||||
;; Use a fixed UUID to improve determinism.
|
||||
(operating-system-uuid os 'dce))
|
||||
|
||||
(mlet* %store-monad ((os-drv (operating-system-derivation os))
|
||||
(bootcfg (operating-system-bootcfg os)))
|
||||
;; XXX: When FULL-BOOT? is true, we end up creating an image that contains
|
||||
|
@ -763,6 +767,7 @@ (define* (system-qemu-image/shared-store
|
|||
#:bootloader (bootloader-configuration-bootloader
|
||||
(operating-system-bootloader os))
|
||||
#:disk-image-size disk-image-size
|
||||
#:file-system-uuid root-uuid
|
||||
#:inputs (if full-boot?
|
||||
`(("bootcfg" ,bootcfg))
|
||||
'())
|
||||
|
|
Loading…
Reference in a new issue