When users need to restore their system (after an sd card failure), there is no reinstall process.
Solution
This pr change the hypercube.sh to search a "backup.tar.gz" in /root or in a usb key, if it found one, it try to restore it with "yunohost backup restore" command.
PR Status
Untested, i have no internetcube here.
Todo:
[ ] Add a hook in doctorcube to backup and restore /etc/hosts, /etc/environment, hostnamectl, AND CHANGE DEFAULT ROOT PASSWORD
COULDN'T BE RELEASED WITHOUT a solution to replace root default password
How to test
Use install-sd.sh to flash the internetcube image without install.hypercube and using the -w options to replace the hypercube.sh by the one of this PR 'bash install-sd.sh -w THIS/PATH/TO/hypercube.sh'
Put your backup tar.gz on an usb stick
Call it backup.tar.gz (it's an hardcoded name)
Plug your usb stick
Power on your internet cube
wait and try to reach the debug page (as for install)
The problem
When users need to restore their system (after an sd card failure), there is no reinstall process.
Solution
This pr change the hypercube.sh to search a "backup.tar.gz" in /root or in a usb key, if it found one, it try to restore it with "yunohost backup restore" command.
PR Status
Untested, i have no internetcube here.
Todo:
COULDN'T BE RELEASED WITHOUT a solution to replace root default password
How to test
Validation