this post was submitted on 24 Apr 2025
216 points (100.0% liked)
Linux
7107 readers
458 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of [email protected] 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