Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I run DietPi on my Raspberry Pi 2, which I use exclusively for programming Atari Lynx cartridges via the Lynx Cart Programmer Pi-Hat and as a result the Raspberry Pi is only ever turned on when I need to burn ROMs to cartridges. Usually this is a quick process but sometimes I noticed it runs into errors on boot with the "Waiting for Dietpi-Postboot to finish (x/15) - syntax error in expression" error appears over and over.

I've put up with this for a while but eventually it got the better of me and I had to fix it. Turned out the fix was really quite simple!
IMG_2952.jpg




There is syntax error in one of the DietPi scripts. Specifically the /DietPi/dietpi/login script. There is a line that reads like this...
 /DietPi/dietpi/login
G_DIETPI-NOTIFY "Waiting for DietPi-Postboot to finish ($current_seconds/$max_seconds)"


The line should read like this (just add the " 2 " after "G_DIETPI-NOTIFY")...
 /DietPi/dietpi/login
G_DIETPI-NOTIFY 2 "Waiting for DietPi-Postboot to finish ($current_seconds/$max_seconds)"


After this fix those errors disappear. Nice and easy!

-i

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.