3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01: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:
Ludovic Courtès 2019-03-22 22:03:38 +01:00
parent ac3c14fb07
commit 0dc7d298a3
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -526,7 +526,10 @@ should set REGISTER-CLOSURES? to #f."
#$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