Closed maovidal closed 1 year ago
Do you want the contents of the image in the tar.gz or the image itself in compressed form?
Hi @a3f
Mi intention is/was to get that boot.vfat
image file compressed.
I was able to achieve it using the exec-post
option.
However, later I was thinking that maybe I understood incorrectly the tar
option. I didn't find any clue about how to use it (inspecting the source with my rudimentary knowledge) as passing other options like files
or image
are rejected by genimage
for tar
.
What could be an example of its use case and how to use it? Currently this is all the content of the documentation for the tar
option:
Generates a tar image. The image will be compressed as defined by the filename suffix.
Thank you!
exec-post = "gzip -k $IMAGEOUTFILE"
is the correct way to achieve that. The tar image is for creating a tarball containing the files in the --rootpath
.
Hi everyone:
I'm having trouble to understand how to use https://github.com/pengutronix/genimage#tar
My ultimate interest is to get a
*.tar.gz
file from an image. Let's say I have this:I have tried this on the same
genimage.cfg
:But
genimage
complains about receiving 2 images.Then I tried:
This last one produces the
boot.vfat
but also an emptyboot.vfat.tar.gz
. What is the correct way to usetar
?Thank you!