Commit f187208
committed
ostree-ext/tar/export: Fix reexport of var/tmp
A lot of technical debt here. A long time ago I added this hacky bit
to inject var/tmp is the container stream even if it wasn't in the
ostree commit.
Today things shipped by `rpm-ostree compose image` like FCOS
don't have `var/tmp` in the commit.
But then more recently we started shipping `/var/tmp`
in base images directly.
Now I'm working on coreos/rpm-ostree#5221
where we're rechunking from a rootfs that does have var/tmp
and that ends up in the ostree commit.
The path comparison here was wrong because the tar stream we
generate has the paths start with `./` and a literal comparison
doesn't match `./var/tmp` != `var/tmp`.
Add a canonicalization helper and use it for this.
Signed-off-by: Colin Walters <[email protected]>1 parent 8dff320 commit f187208
1 file changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
65 | 81 | | |
66 | 82 | | |
67 | 83 | | |
| |||
496 | 512 | | |
497 | 513 | | |
498 | 514 | | |
499 | | - | |
| 515 | + | |
500 | 516 | | |
501 | 517 | | |
502 | 518 | | |
| |||
724 | 740 | | |
725 | 741 | | |
726 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
727 | 751 | | |
728 | 752 | | |
729 | 753 | | |
| |||
0 commit comments