Skip to contentSkip to conversation

linux-modules.tgz: fix file permissions to root

PATCH New Li Wang 1 participant 1 message May 20, 2020

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH v2 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 | 1 +
 1 file changed, 1 insertion(+)
meta/classes/kernel.bbclass +1 -0
index 0935196..20a0135 100644
@@ -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
Signature · 1 line
1.9.1