freegeekchicago / fgc-installscript

FreeGeek Chicago Install Script
MIT License
8 stars 7 forks source link

Add script to undo "prepare for shipping to end user" #63

Closed steenburgh closed 5 years ago

steenburgh commented 6 years ago

Last week at FreeGeek I noticed several computers come back from QA because someone pushed 'prepare for shipping to end user'. Pushing this button makes the first time configuration menu show up on the next bootup, and there is no way to exit it from the UI. This meant that QA couldn't run any of the QA scripts on these machines, so mint had to be completely reinstalled, a 1hr+ process.

capture

I did some digging and it looks like the script run when a user clicks the 'prepare for shipping to end user' button, adds a service called oem-config and sets it to run on bootup. I wrote a quick script to undo that.

To run this script on a computer that's stuck at the first time configuration menu, do the following

  1. When the 'welcome' screen pictured above shows up, push Ctrl + Alt + F2. The screen will go blank for a bit, then prompt you for a username and password. Enter oem for the username and password for the password.

capture

  1. Run wget -O undo.sh https://git.io/vpeiv to download the script.
    • [ ] TODO: Once this is merged, we'll need to update the git.io url for the script.
  2. Run the script with sudo bash ./undo.sh

capture

  1. Run sudo reboot to restart the machine. You've just saved yourself over an hour of work!
steenburgh commented 6 years ago

@ahanson @southpauw This may prove useful tomorrow.

DanFGC commented 5 years ago

IMO this shouldn't be added to the install script, but the people in QA should be made aware of it to use as needed. Also, why use the -q option? It works just as well without that and gives feedback saying that undo.sh has been downloaded.

steenburgh commented 5 years ago

This wasn't intended to go in the install script but I needed somewhere to put it. As for the q flag, there's no particular reason to have it. I'll edit my post and remove it.

steenburgh commented 5 years ago

Also of note, this PR won't actually out it in the install script itself, this PR is just going to put it in the repo as another script.

steenburgh commented 5 years ago

Lol I should push a commit that adds a trailing tab to every line. Would that make you happy? 😀