guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.49k stars 369 forks source link

Add user-fix script to allow changing usernames #791

Closed cp2004 closed 2 years ago

cp2004 commented 2 years ago

This moves the script for allowing username changes from the emergency patch in OctoPi-UpToDate, to OctoPi itself. Gina mentioned that it needed doing, so I prepared the PR.

This allows for someone to change the username in the Raspberry Pi imager before flashing the image. It does make the 'first boot' take longer as a restart is required for the changes to take affect, should they be needed.

I have tested it on a 32 bit build, although it was with FFMPEG HLS disabled due to the build time being long with that. I don't think that should impact usability of the image.

This concept has been working for a little while with the current 0.18 image patched, so hopefully this continues to work well.