From: Michal Sojka Date: Tue, 2 May 2017 14:57:18 +0000 (+0200) Subject: image.mk: Generate cpiogz with root-owned files X-Git-Tag: v18.06.0-rc1~2963 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa8e91a1e4d96a5a2bfe4437b61086c6c505edc1;p=oweals%2Fopenwrt.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 ad9535d018..3f5b4544e9 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