Master -> clone process
Current process is the following :
At first boot the device is a "master device" and we can configure OLIP following the project needs. Once the device is shutdown it becomes a clone as some files are removed during olip-post-install
playbook. At next boot, the device becomes "a clone" of the master and get personalized with specific hostname, wifi AP name, etc.
In some case, we would like to be able to reboot the master, shut it down and start it up later. This is not possible currently because the olip-post-install
playbook automate the clean-up of some files.
We probably don't want to automatically remove these files and keep them on the device. However if we don't do it automatically, someone or something will have to do it.
- We could get the SD Card and plug it in a laptop and remove the files manually
- We could add a script called
disable_master.sh
that removes the files - We could load a webpage hosted on the device that trigger a script that removes the files
- etc.
Once done, we can clone the SD card and let the new device becoming a clone automatically.