6 ms·
And if the checksum fails, what then?
by dymk 5y ago
And if the checksum fails, what then?
- howinteresting 5y agoUse a Merkle tree.
- wazzaps 5y agoMaybe checksum before updating? Or revert the patch if it fails?
- yjftsjthsd-h 5y agoThen abort the update? I'm not objecting to A/B partitions or filesystem snapshots or boot environments or however you want to implement it, I'm just saying that you can reconstruct the install image on the machine rather than downloading the whole thing over the wire.
- waterhouse 5y agoThen fall back to downloading the full OS image. Then the worst case would be about the same as today, while the common (99.9%+) case would be fast and bandwidth-cheap. (Optimization: hash tree, figure out which specific files are broken and download only those.)