this post was submitted on 24 Apr 2025
191 points (89.3% liked)
Linux
8280 readers
400 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
We've been mucking around with how to pre-configure Raspberry Pis after flashing at $DAYJOB and basically, the way the Raspberry Pi Imager works is that it writes a
firstrun.sh
onto the SD card which gets run during first boot.How does it know to not run that script from the second boot onwards? Well, one of the lines in that script is:
...it deletes itself while it's running. ๐
That's pretty clever