From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] libfakeroot problem - solved
Date: Mon, 15 May 2017 23:39:21 +0200 [thread overview]
Message-ID: <8760h1ajg6.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <188f3de7-0bdc-4bda-0499-6127018e05c0@ou.edu> (Steve Kenton's message of "Fri, 12 May 2017 23:40:20 +0000")
>>>>> "Steve" == Steve Kenton <skenton@ou.edu> writes:
Hi,
> OK, I found it. It was leakage from the build host. Testing something
> for the embedded system I had run getcap to give /bin/tar some
> capabilities and did not remove them afterwards. Somehow that
> interacted badly with libfakeroot and the creation of
> output/images/rootfs.tar at the end of the build. The reason I did not
> see it on the 32-bit builds is that being intended for recovery and
> reinstall they used initramfs linked into the kernel for the rootfs
> instead of the rootfs.tar file. When the libfakeroot issue
> manifested, root did not own the root filesystem files in rootfs.tar
> when it was expanded with "sudo tar xf rootfs.tar ....." Which
> resulted in a system which was bootable but would not run properly
> because of the file ownership/permission problems.
Hmm, we've relatively recent had issues with filesystem capabilities /
acls and fakeroot, but I thought this was fixed (unless you did part of
your build with the old BR version):
https://git.buildroot.net/buildroot/commit/?id=2a222446b4614a38b4042df54b68b69b96939708
> This was clearly a self inflicted problem, but the fact that tar is
> not included in the output/host/* tools and thus the build system
> /bin/tar was used certainly make it "interesting" to find.
Well, it is a bit of chicken and egg issue - Most package sources are
available in tarballs, so we need SOME utilities from the host (like gcc
and make), and we try to only add host packages when really needed
(E.G. uncommon SW or we need special versions, ..).
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2017-05-15 21:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 17:06 [Buildroot] libfakeroot problem Steve Kenton
2017-05-12 23:40 ` [Buildroot] libfakeroot problem - solved Steve Kenton
2017-05-15 21:39 ` Peter Korsgaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760h1ajg6.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox