Commit 533ac5b
committed
build.sh: make /usr permission changes smarter
If we only change the permissions on the directories then we won't
balloon the size of the container so much. As an example after the
changes in 17b3f52, f7ef7d3 we ended up almost doubling the size
of the container:
```
builder@coreos-ppc64le-builder:~$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/coreos-assembler/staging ppc64le-f7ef7d3 5ca4b8d1eae4 38 hours ago 9.18 GB
quay.io/coreos-assembler/staging ppc64le-d34ab4a 659d6f7bbf7a 45 hours ago 5.11 GB
quay.io/coreos-assembler/staging ppc64le-17b3f52 d2e55354e43f 2 days ago 5.11 GB
```
This should make it so the duplicated files in layers are only
directories so they take up much less space.1 parent 5c52e79 commit 533ac5b
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments