summaryrefslogtreecommitdiff
path: root/write-and-config.sh
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-05-03 15:33:22 +0300
committerLars Wirzenius <liw@liw.fi>2023-05-03 15:33:22 +0300
commit1ca561f5b4f026d4d47542a4e46ba4c9b395b515 (patch)
treed68ffdee788e7d6b4ef61656c070b3e110720aa2 /write-and-config.sh
parentef638ccdc71a2adac74785a14773320003373c73 (diff)
downloadv-i-1ca561f5b4f026d4d47542a4e46ba4c9b395b515.tar.gz
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
Diffstat (limited to 'write-and-config.sh')
-rwxr-xr-xwrite-and-config.sh1
1 files changed, 1 insertions, 0 deletions
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