We recently decided to use Mender Professional for our RaspberryPi-based fleet updates and noticed that there is no check if the SD card is corrupted or something so we decided to implement this ourselves as Pi’s can suffer sometimes.
We want to read back from disk from the inactive partition once the download is completed and verify file integrity.
My questions specifically are:
- Can we get the hash off the cloud server or the deployment?
- Can we rerun the same hashing process from disk expected to produce the same hash?
- Which script (location?) should we place this above code? Return values to allow/block the update?
I heard @kacf is the man for this