LearnersBlock / learners-block

Provide educational resources, websites and popular EdTech (Kolibri, Moodle) offline.
https://learnersblock.org
GNU General Public License v3.0
12 stars 1 forks source link

Perform updates after reboot #232

Open maggie44 opened 2 years ago

maggie44 commented 2 years ago

At the moment updates are triggered as soon as an internet connection becomes available. Ideally the download would be pulled while online, but the actual update won't happen until the beginning of the next reboot, to prevent disruption.

Added request for such a feature: https://forums.balena.io/t/feature-request-add-ability-to-update-containers-on-reboot/349883 https://github.com/balena-os/balena-supervisor/issues/1624

In the meantime, there is an updates lock applied which is overridden on first boot by passing 'force' to the supervisor update endpoint (https://github.com/LearnersBlock/learners-block/commit/5b296c2dde68e02fff62b4dc108af922d18edb07). This can be removed if an install on reboot feature is added upstream.

maggie44 commented 2 years ago

This isn't resolved, but have had to remove the temporary workaround as it was interfering with hostname updates. It isn't built for the purpose used here, and other conflicts may occur in the future, which means it is better to deal with the interruptions during updates than potential bricking of devices.