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"