Skip to contentSkip to conversation

create separate tarball for /opt or /home partition

DISCUSSION Steve 2 participants 2 messages Nov 15, 2021

lore
Share & tools
lore

Steve

author
#0 lore raw

Can I control Poky/Yocto in a way to create not just a single rootfs but lets say 3 tarballs, one for / /opt and /home? And if so - how? I know wks can be scripted, but that's not creating the splitted tar.bz2 (as example), so that seem not the solution.
Thanks in advance for any helping hint.
Arno

#1 lore raw
Quoted 5 lines · Steve

Can I control Poky/Yocto in a way to create not just a single rootfs but lets say 3 tarballs, one for / /opt and /home? And if so - how? I know wks can be scripted, but that's not creating the splitted tar.bz2 (as example), so that seem not the solution.
Thanks in advance for any helping hint.

The output generation functions are customisable so you could replace IMAGE_CMD:tar in image_types.bbclass with something which generated three different tarballs for example.do_image_tar

If you wanted to do this generically where the system would then do something with the three different pieces such as place them into separate partitions that is where you start to need something like wic.

So your example is easily changed but your end result might not be, it all really depends.

Cheers,

Richard