Skip to contentSkip to conversation

linux-modules.tgz: fix file permissions to root

PATCH Superseded Li Wang 1 participant 1 message May 14, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index a724645..18a11d7 100644
@@ -691,7 +691,7 @@ kernel_do_deploy() {
 
 	if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
 		mkdir -p ${D}${root_prefix}/lib
-		tar -cvzf $deployDir/modules-${MODULE_TARBALL_NAME}.tgz -C ${D}${root_prefix} lib
+		tar --owner=0 --group=0 -cvzf $deployDir/modules-${MODULE_TARBALL_NAME}.tgz -C ${D}${root_prefix} lib
 		ln -sf modules-${MODULE_TARBALL_NAME}.tgz $deployDir/modules-${MODULE_TARBALL_LINK_NAME}.tgz
 	fi
 
Signature · 1 line
1.9.1