Commit d3d5590
fix(builder): use
`buildah inspect --format '{{.FromImageDigest}}'` opens the overlay store
for read, which includes a MS_PRIVATE remount of
`/var/lib/containers/storage/overlay`. That fails inside the
`systemd-run` sandbox coold spawns the builder under:
remount /var/lib/containers/storage/overlay, flags: 0x40000:
invalid argument
`buildah images --format '{{.Digest}}' <tag>` returns the same
sha256:... digest string without triggering the remount, confirmed on a
live Hetzner VM inside the equivalent `systemd-run` unit.
Also pin `--storage-driver overlay` to match the driver passed to `bud`
so a non-default `/etc/containers/storage.conf` can't silently send the
digest lookup to a different store.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>buildah images to read digest, avoid sandbox remount1 parent 7d3e52b commit d3d5590
1 file changed
Lines changed: 24 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
109 | 102 | | |
110 | | - | |
| 103 | + | |
| 104 | + | |
111 | 105 | | |
112 | 106 | | |
113 | 107 | | |
| |||
0 commit comments