From 1ca561f5b4f026d4d47542a4e46ba4c9b395b515 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 3 May 2023 15:33:22 +0300 Subject: fix(write-and-config.sh): sync changes to disk before fsck I don't understand why this is needed, but with one of my USB drives the script consistently fails without the sync. Sponsored-by: author --- write-and-config.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'write-and-config.sh') diff --git a/write-and-config.sh b/write-and-config.sh index ce21afe..308065e 100755 --- a/write-and-config.sh +++ b/write-and-config.sh @@ -14,6 +14,7 @@ echo "Unmounting everything in $dev" umount -fv "$dev"* || true echo "Write installer.img to $dev" dd if=installer.img bs=1M oflag=direct status=progress of="$dev" +sync for fs in "$dev"?; do echo -- cgit v1.2.1