From: Michal Sojka Date: Tue, 2 May 2017 14:57:18 +0000 (+0200) Subject: image.mk: Generate cpiogz with root-owned files X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dbaaeae428d1d1d7cc326d5ac9bb9b5b967f960f;p=openwrt%2Fstaging%2Fdedeckeh.git image.mk: Generate cpiogz with root-owned files Some files (e.g. /etc/dropbear) need to be owned by root. Add cpio option to ensure that. Other image types (at least targz and squashfs) already have this. Signed-off-by: Michal Sojka --- diff --git a/include/image.mk b/include/image.mk index 8f55627390..84b46f256c 100644 --- a/include/image.mk +++ b/include/image.mk @@ -277,7 +277,7 @@ endif ifdef CONFIG_TARGET_ROOTFS_CPIOGZ define Image/Build/cpiogz - ( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9n >$(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz ) + ( cd $(TARGET_DIR); find . | cpio -o -H newc -R root:root | gzip -9n >$(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz ) endef endif