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

Skip down to comments...
A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. If you spot something out of place, please do let me know.

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.
 
comments powered by Disqus
Other posts you may like...