Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop trying to move config from read-only config partition
There is some prehistoric code in the onboot script that allows to pass initial hardwaremodel, rebootConfig and restartcounter files via /config partition. However, as this partition became read-only, EVE is no longer able to remove them once applied: move /config/rebootConfig /persist/status mv: cannot remove '/config/rebootConfig': Read-only file system But while the file cannot be removed, mv command will manage to copy its content to /persist. But this means that on every boot the current value in /persist is overwritten with this initial content from /config. This is very dangerous especially for rebootConfig. Device will end up in endless reboot cycle: on every boot it will replace the last applied reboot counter with whatever the initial value was set in /config, which results in counter mismatch wrt. the reboot counter from device config received from the controller. I'm not aware of any practical value of setting initial values of these files through /config, therefore I think this functionality can be completely removed. Signed-off-by: Milan Lenco <milan@zededa.com> (cherry picked from commit c56cdb9)
- Loading branch information