UPDATE #9
There is no any viable way to debug and fix SFOS until these three facilities will be fully functional in place unless you wish to waste your time as you were an immortal highlander.
-
1st - make working the recovery image because it is the starting point for everyone that seriously wants debugging / fixing their OS and for everyone that wish to experiment with the system but having a quick recovery option. For this reason the recovery boot image should be the standard and only one. Obviously, the recovery boot mode should start ONLY when the users ask for it (e.g.: USB cable connected at boot time could be a way) or when the system is bricked badly (e.g.: the UI cannot rise up, a file-format flag is set after a watchdog expired).
-
2nd - provide a reliable system patch manager because people who wants debug and fix their OS - included them - need to track down and revert the changes they made on the system otherwise every time is a start from scratch which currently means flash.sh because recovery does not even reset the system to SFOS factory state.
-
3rd - provide a reliable back-up system to let everyone is debugging and fixing their OS to quickly be back to a previous snapshot for users because the two point above should be a good starting point to deal with the root filesystem.
About backup
The rsync
is our friend but a script user-friendly interface is needed and moreover rsync
is not available in the userdata image and cannot be installed until the device is registered with Jolla and related repositories are available.
This means that for OS early-boot hackers the rsync
is not an immediate option to go for especially because also no any internet access can be available. Therefore a backup / restore script suite to be useful on early-boot stages should necessary relies on tar
an gzip
because also pigz
nor xz
are not available nor installable even if xz-libs
are installed.
Working in progress
Which is exactly what I am doing by now:
-
A shell scripts suite for
tar
/gzip
backup/restore has been tested but some more development and tests is needed (cfr. users backup section in the Quick Start Guide. -
A system patch manager by shell script that can un/apply permanent patches on rootfs has been used successfully to recover the system by a faulty patch installation but not released, yet
-
A system patch manager last version patch downloader has been implemented and successfully tested but not released, yet. It creates also a list of patch installed on the system a repository of them for future recovery or removal even in emergency off-line cases and can restart system services or daemon on-demand using a special formatted patch header.
I did not released the current version of these three tools because it is supposed that they should work together and their integration is still in early development stage. For example, the immediately after flashing system configuration shell script did not reach a reasonable maturity level.
Obviously, if - I do - these three facilities, then I do in a way to put myself in the most independent position from Jolla Oy - not necessarily against their interests or profit opportunities - simply I do not put those values in any place of my working TODO list because I am not paid to take care about their business. Which is good for the SFOS community because it brings more freedom for us.