Repository navigation
Commit 091eb13
committed
fix(updater): decide "no update needed" before deleting or downloading
The check exists already, but it sits after the pull, and the pull needs
the room that deleting the standby slot frees - so an update that turns
out to be unnecessary had already discarded the system this one would
roll back to, and on an ARMv6 board had spent half an hour doing it.
Asking the registry first costs one round trip. The digest has to come
from "buildx imagetools", which reports the manifest list's digest, the
one docker records in RepoDigests after a pull and the one /etc/image
holds; "docker manifest inspect" reports the per-platform digests and
would compare the wrong values. Advisory: an empty answer falls through
to the pull.
Signed-off-by: Simon Walz <contact@simonwalz.de>1 parent 3f93dd9 commit 091eb13
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
113 | 137 | | |
114 | 138 | | |
115 | 139 | | |
| |||
0 commit comments