Skip to content

Commit ff06edc

Browse files
committed
build-sys: Keep bootc-pkg image for layer caching
Removing localhost/bootc-pkg at the end of the package target also deletes the build stage layers, causing subsequent builds to miss the cache and rebuild the RPMs from scratch. Keep the image around; use `just clean-local-images` to reclaim space. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent cbee29b commit ff06edc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ package: _packagecontainer
121121
podman run --rm localhost/bootc-pkg tar -C /out/ -cf - . | tar -C target/packages/ -xvf -
122122
chmod a+rx target target/packages
123123
chmod a+r target/packages/*.rpm
124-
podman rmi localhost/bootc-pkg
124+
# Keep localhost/bootc-pkg for layer caching; use `just clean-local-images` to reclaim space
125125

126126
# Build+test using the `composefs-sealeduki-sdboot` variant.
127127
test-composefs:

0 commit comments

Comments
 (0)