From 3473633e432a95b8a78699624a8ecc138f56ac39 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Tue, 26 Jul 2022 10:34:23 -0600 Subject: [PATCH] sync blockdev after update (#1694) --- backend/src/update/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/update/mod.rs b/backend/src/update/mod.rs index 6cb762cea..22ef0faa8 100644 --- a/backend/src/update/mod.rs +++ b/backend/src/update/mod.rs @@ -379,6 +379,7 @@ async fn write_stream_to_label( } file.flush().await.with_kind(ErrorKind::Filesystem)?; file.shutdown().await.with_kind(ErrorKind::Filesystem)?; + file.sync_all().await.with_kind(ErrorKind::Filesystem)?; drop(file); Ok(hasher.finalize().to_vec()) }