[Buildroot] [PATCH 1/1] overlay: Allow overlay to be a tar archive.
Peter Korsgaard
peter at korsgaard.com
Wed Mar 9 11:23:22 UTC 2016
>>>>> "Cam" == Cam Hutchison <camh at xdna.net> writes:
Hi,
> On 9 March 2016 at 07:39, Peter Korsgaard <peter at korsgaard.com> wrote:
>> Looking at the tar homepage, -a / --auto-compress was added in tar 1.20
>> from early 2008, so this presumably breaks on older enterprise
>> distributions like RHEL 5.
> I did check when -a went in, but I figured 8 years ago was old enough.
> I don't know much about the release dates of various distros or what
> buildroot wants to support. Is there a guide as to what the cutoff should
> be for host features?
We don't have anything fixed written down or set in stone, but I do know
that that we have users on RHEL 5.x, E.G. see these commits:
- 0bbd1dbc156cc81e6f9986c79774c67d537832a8
- cc7da4743e779d9792df0a91e1391112e88968b9
- 53223cbb4e775ce88c036ddbfcca260e23c5739e
I don't have access to a RHEL5 machine, so I cannot easily check the tar
version, but as it was released in ~2006, it presumably doesn't have tar
1.20 ;)
>> Another potential issue that you assume that the tarball directly
>> contains the rootfs overlay content (E.G. no subdirs). This is true for
>> the Buildroot rootfs tarballs, but how common is this?
> My use case is for using buildroot rootfs tarballs from other phases of
> a larger build, both where some developers are responsible for some
> parts (kernel/bootloader, common rootfs, specific applications,
> integration), and where there are multiple boards to develop for that
> have a large amount of commonality for which it is wasteful to rebuild
> the same parts over and over.
Ok, and you use Buildroot as the toplevel (E.G. the thing that
integrates everything) buildsystem?
> However, it strikes me now as I write this reply that the patch is wrong.
> Any of the parts done under fakeroot that is captured in the tarball will
> be lost when merged as an overlay tarball as the extraction is not done
> under the fakeroot. I have no direct need for this but it was my intention
> that this work - the rootfs in the tarball would be faithfully represented in
> the enclosing rootfs.
Ahh yes.
>> I'm not sure this is a common enough usecase to explicitly support
>> versus just adding a simple post-image script.
> Probably not. I've been carrying this patch or a variant for the last 6 years,
Wow, the rootfs-overlay stuff is afaik only from 2013 or so (before that
people did it manually in post-build scripts).
> so I thought I'd submit the simplest version of it I have. But given the
> questionable use case and that it is subtly wrong as noted above, I'd
> suggest you just drop this patch.
Ok, I'll mark it as rejected in patchwork.
--
Venlig hilsen,
Peter Korsgaard
More information about the buildroot
mailing list