Skip to content
Snippets Groups Projects
Commit aa8e91a1 authored by Michal Sojka's avatar Michal Sojka Committed by Jo-Philipp Wich
Browse files

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: default avatarMichal Sojka <sojkam1@fel.cvut.cz>
parent 4a033475
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment