Add user-fix script to allow changing usernames #791
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.