aboutsummaryrefslogtreecommitdiff
path: root/src/property/disk.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-24 17:20:21 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-24 17:23:59 -0700
commitab0fc144ec7cdc12169571a374244646dfb19331 (patch)
tree962d54dedcf0d4e421111b7c5ff6317b279ee0fe /src/property/disk.lisp
parentc69f3cbd438df4814e9d50fb17ec273c91edc060 (diff)
downloadconsfigurator-ab0fc144ec7cdc12169571a374244646dfb19331.tar.gz
sync(1) before closing newly created volumes
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/disk.lisp')
-rw-r--r--src/property/disk.lisp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/property/disk.lisp b/src/property/disk.lisp
index cb53d85..8538f59 100644
--- a/src/property/disk.lisp
+++ b/src/property/disk.lisp
@@ -568,6 +568,7 @@ must not be modified."
(device-file opened-volume))))
(create (volume-contents opened) (device-file opened)))))))
(unwind-protect (create volume file)
+ (mrun "sync")
(mapc #'close-volume opened-volumes))))))