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
1 changed files with 4 additions and 1 deletions

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