From aa8e91a1e4d96a5a2bfe4437b61086c6c505edc1 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 2 May 2017 16:57:18 +0200 Subject: [PATCH] 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 --- include/image.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.35.1