mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
vm: 'system-docker-image' calls 'sync' before rebooting.
Previously we could end up silently building truncated tarballs. * gnu/system/vm.scm (system-docker-image)[build]: Add call to 'sync'.
This commit is contained in:
parent
ac3c14fb07
commit
0dc7d298a3
1 changed files with 4 additions and 1 deletions
|
@ -526,7 +526,10 @@ (define build
|
|||
#$os-drv
|
||||
#:compressor '(#+(file-append gzip "/bin/gzip") "-9n")
|
||||
#:creation-time (make-time time-utc 0 1)
|
||||
#:transformations `((,root-directory -> ""))))))))
|
||||
#:transformations `((,root-directory -> "")))
|
||||
|
||||
;; Make sure the tarball is fully written before rebooting.
|
||||
(sync))))))
|
||||
(expression->derivation-in-linux-vm
|
||||
name build
|
||||
#:make-disk-image? #f
|
||||
|
|
Loading…
Reference in a new issue