fix: error on umount card for bootstrap

This commit is contained in:
Cyrille Nofficial 2022-01-28 18:02:36 +01:00
parent 2c07fcfff0
commit bb2db645f5

View File

@ -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 sudo chmod 600 build/mnt/wpa_supplicant.conf
echo "Umount boot partition" echo "Umount boot partition"
sync
sudo umount build/mnt 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 sudo chown -R 1000:1000 build/mnt/home/pi
echo "Umount sdcard"
sudo umount ./build/mnt
echo "Force disk sync" echo "Force disk sync"
sync sync
echo "Umount sdcard"
sleep 2
sudo umount ./build/mnt
echo "Bootstrap finished, plug sdcard on raspberrypi and connect with command:" echo "Bootstrap finished, plug sdcard on raspberrypi and connect with command:"
echo " ssh pi@${HOSTNAME_CAR}.local" echo " ssh pi@${HOSTNAME_CAR}.local"