[Buildroot] [PATCH] fs/ubifs: work around fakeroot / sed -i issue on systems with SELinux enabled

Peter Korsgaard peter at korsgaard.com
Sun Nov 27 20:20:30 UTC 2016


On Sun, Nov 27, 2016 at 12:40 AM, Peter Korsgaard <peter at korsgaard.com> wrote:
> Fixes #9386
>
> GNU sed -i misbehaves on systems with SELinux enabled, as it tries to copy
> to the SELinux security context (xattr) from the source file to to the new
> destination file, which fails under fakeroot and leaves the file with 000
> permissions, causing ubinize to fail when it cannot read to configuration
> file.
>
> So as a workaround, combine the install and tweak steps in a single
> sed with a redirect to the destination file instead.
>
> Signed-off-by: Peter Korsgaard <peter at korsgaard.com>

Committed, thanks.

I will now revert the changes moving from fakeroot to pseudo.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list