From bb2db645f55fbca9a177980616c067ec42d38b06 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Fri, 28 Jan 2022 18:02:36 +0100 Subject: [PATCH] fix: error on umount card for bootstrap --- bootstrap/build_sdcard.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bootstrap/build_sdcard.sh b/bootstrap/build_sdcard.sh index 91b12fb..6b1954f 100755 --- a/bootstrap/build_sdcard.sh +++ b/bootstrap/build_sdcard.sh @@ -54,6 +54,7 @@ eval "echo \"$(cat wpa_supplicant.conf)\"" | sudo tee build/mnt/wpa_supplicant.c sudo chmod 600 build/mnt/wpa_supplicant.conf echo "Umount boot partition" +sync sudo umount build/mnt @@ -74,13 +75,14 @@ sudo chmod 600 build/mnt/home/pi/.ssh/authorized_keys sudo chown -R 1000:1000 build/mnt/home/pi - -echo "Umount sdcard" -sudo umount ./build/mnt - echo "Force disk sync" sync +echo "Umount sdcard" +sleep 2 +sudo umount ./build/mnt + + echo "Bootstrap finished, plug sdcard on raspberrypi and connect with command:" echo " ssh pi@${HOSTNAME_CAR}.local"