Commit ec49f47
authored
ensure blob directory exists in archives (#77)
The helios-omicron-brand code that unpacks zone images requires all file
entries in an archive to be preceded by entries that create those files'
directories. Ensure the packaging code adds the requisite entries for
downloaded blobs (as it already does for Rust programs).
Propolis will need a patch release containing this fix to produce
functioning Omicron zone images, so I've bumped the package version to
0.12.2 in this commit; let me know if I should do that in a separate PR.
Tested by building a Propolis package using this commit and verifying
that (a) tar -tzf prints the appropriate output structure, and (b)
hotpatching an Omicron dev cluster with this zone image allows instances
to start (images created without the fix produce a file-not-found error
when sled-agent tries to start them).1 parent eaca141 commit ec49f47
2 files changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
606 | 614 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
612 | 626 | | |
613 | 627 | | |
614 | 628 | | |
| 629 | + | |
615 | 630 | | |
616 | 631 | | |
617 | 632 | | |
| |||
0 commit comments