Commit fee527a
committed
fix(extensions/netboot): always clean up remote rootfs archive on tar failure
The remote shell ran with `set -e`, so a tar failure (disk full on the
NFS export, archive corruption, etc.) exited the shell before the
`rm -f` and left a 200-800 MB rootfs archive in /tmp. Repeated failed
deploys accumulate.
Restructure to: mkdir && tar; capture rc; rm -f unconditionally; exit
with the captured rc so Armbian's set -e still aborts on the real
failure.
Reported by coderabbitai (#9656 review, line 438).
Assisted-by: Claude:claude-opus-4.71 parent 7bcded6 commit fee527a
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | | - | |
437 | | - | |
438 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
| |||
0 commit comments