From: Li Wang Date: Wed, 20 May 2020 07:27:22 +0000 (+0800) Subject: linux-modules.tgz: fix file permissions to root X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11051 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e141906069c6f754199512741f6e3d5b72fee7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git linux-modules.tgz: fix file permissions to root the files of linux-modules should be same permissions with rootfs.tar.bz2, because it is a part of rootfs when used to install. Signed-off-by: Li Wang Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 0935196f6f6..20a0135fc97 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -711,6 +711,7 @@ kernel_do_deploy() { else TAR_ARGS="" fi + TAR_ARGS="$TAR_ARGS --owner=0 --group=0" tar $TAR_ARGS -cv -C ${D}${root_prefix} lib | gzip -9n > $deployDir/modules-${MODULE_TARBALL_NAME}.tgz ln -sf modules-${MODULE_TARBALL_NAME}.tgz $deployDir/modules-${MODULE_TARBALL_LINK_NAME}.tgz