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!

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

After this fix those errors disappear. Nice and easy!


Skip down to comments...
Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...