Skip to content

Commit

Permalink
Add sync at end of /home/pi/scripts/setX11vncPass to fix generation f…
Browse files Browse the repository at this point in the history
…ailing
  • Loading branch information
guysoft committed Nov 5, 2023
1 parent ef1a399 commit 37b8a7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/fullpageos/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ then
if [ "$FULLPAGEOS_OVERRIDE_PASSWORD" != "default" ]
then
sudo -u pi /home/pi/scripts/setX11vncPass "$FULLPAGEOS_OVERRIDE_PASSWORD"
sync
if [ ! -f /home/pi/.vnc/passwd ] || [ ! -s /home/pi/.vnc/passwd ]; then
echo "/home/pi/.vnc/passwd was not created. Trying again."
sudo -u pi /home/pi/scripts/setX11vncPass "$FULLPAGEOS_OVERRIDE_PASSWORD"
sync
if [ ! -f /home/pi/.vnc/passwd ] || [ ! -s /home/pi/.vnc/passwd ]; then
echo "/home/pi/.vnc/passwd was not created again. Giving up."
echo "Failed to set a VNC password. Aborting build."
Expand Down

0 comments on commit 37b8a7b

Please sign in to comment.