Add "factory reset" functionality

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major
    • Component/s: Setup
    • None

      It would be useful if a node could be reset back to a default, unassociated state. This should be able to be invoked from both the SolarNode GUI as well as a SolarNet instruction. When activated, the following data should be wiped at a minimum:

      1. Node identity, in /etc/solarnode/identity.json and /etc/solarnode/tls/node.jks
      2. Node data, in /var/lib/solarnode/var and /run/solarnode

      Because deleting this data can't be done while SolarNode is running, a helper script should be used that shuts down solarnode, deletes the data, and starts solarnode up again. The script should allow other packages to contribute "reset hooks" that are just other scripts that are invoked by the reset script (e.g. run all scripts in a special "reset hook" directory). For example the WiFi credentials in /etc/wpa_supplicant/wpa_supplicant-wlan0.conf (and possibly /var/cache/debconf/passwords.dat if dpkg-reconfigure sn-wifi was used) might need to be deleted as well.

            Assignee:
            Matt Magoffin
            Reporter:
            Matt Magoffin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: