Commit 3631ab0
to-disk: Use symlink approach for container storage
When installing images larger than ~3GB, the installation would fail
with "no space left on device" during container layer import. This
occurred because the tmpfs mounts for /var/lib/containers and /var/tmp
defaulted to 50% of RAM, which was insufficient for storing temporary
layer data during import.
Fix by mounting /var/tmp as a large tmpfs (sized to match the swap
partition, which is already calculated based on image size) and
symlinking /var/lib/containers to /var/tmp/containers. This
consolidates temporary storage in one location and avoids duplicating
size calculation logic.
Fixes installation failures for images >3GB
Assisted-by: Claude Code
Signed-off-by: ckyrouac <[email protected]>
Signed-off-by: Colin Walters <[email protected]>1 parent e4cea7b commit 3631ab0
1 file changed
+19
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
209 | 216 | | |
210 | 217 | | |
211 | 218 | | |
212 | | - | |
| 219 | + | |
213 | 220 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
217 | 228 | | |
218 | 229 | | |
219 | 230 | | |
| |||
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
240 | | - | |
| 251 | + | |
241 | 252 | | |
242 | 253 | | |
| 254 | + | |
243 | 255 | | |
244 | 256 | | |
245 | 257 | | |
| |||
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
374 | | - | |
| 386 | + | |
375 | 387 | | |
376 | 388 | | |
377 | 389 | | |
| |||
0 commit comments