mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-06-01 06:00:15 +00:00
Extract layer.tar from imgfac output and recompress
This commit is contained in:
parent
543fbf2923
commit
a046d31a6c
8
Makefile
8
Makefile
|
@ -50,7 +50,9 @@ $(TARGETIMAGE_META): $(BASEIMAGE_META)
|
|||
docker | tee -a logs/target_image-$(OUTNAME).out | tail -n4 > $(TARGETIMAGE_META) || exit 3
|
||||
|
||||
$(OUTNAME).tar.xz: $(TARGETIMAGE_META)
|
||||
cp $(STORAGEDIR)/$(TARGETIMAGEUUID).body $(OUTNAME).tar.xz
|
||||
mkdir out
|
||||
ln $(STORAGEDIR)/$(TARGETIMAGEUUID).body out/$(TARGETIMAGEUUID).tar.xz
|
||||
tar -Oxf out/$(TARGETIMAGEUUID).tar.xz */layer.tar | xz > out/$(OUTNAME).tar.xz
|
||||
|
||||
test:
|
||||
@echo $(CONTAINER_NAME)
|
||||
publish:
|
||||
@echo out/$(OUTNAME).tar.xz
|
||||
|
|
Loading…
Reference in New Issue
Block a user