Factory reset restores which OS?
Howdy. It appears that a factory reset restores our own version of the OS, which is great. It also appears that various settings such as WiFi configuration are reset, which is also great. So, what exactly does the factory reset do; clear everything out of /rom? Thanks.
@huntc This runs the /sbin/firstboot script which performs jffs2reset which erases the overlay partition. The overlay partition contains the packages you install etc
@crispyoz Thank you!
Let me know if it clears things up or if there's more that should be added!
Thanks for updating the documentation.
We've exposed the reset button for the user and then realised that we don't want a hard-reset to remove the software we've installed at the factory. We also don't want to distribute that software with the operating system image due to licensing considerations.
I'll now attempt to have our custom operating system image override the behaviour of
firstboot. Please confirm this is the correct approach.
Following up - altering
firstbootis insufficient. One needs to change
@huntc Thanks for sharing - I've made another update to the docs page on factory resets. It now points out that
/etc/rc.button/resetcontrols what actions the device will take based on how long the button is pressed/the pin is held high.