diff options
author | Michal Sojka <sojkam1@fel.cvut.cz> | 2017-05-02 16:57:18 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-05-16 17:38:08 +0200 |
commit | dbaaeae428d1d1d7cc326d5ac9bb9b5b967f960f (patch) | |
tree | 7a5780e3fbcb731db01dee95a111047ec65c15d0 | |
parent | 4bd98e9224cfd89a2d8de5759a7823964d89225f (diff) | |
download | mtk-20170518-dbaaeae428d1d1d7cc326d5ac9bb9b5b967f960f.zip mtk-20170518-dbaaeae428d1d1d7cc326d5ac9bb9b5b967f960f.tar.gz mtk-20170518-dbaaeae428d1d1d7cc326d5ac9bb9b5b967f960f.tar.bz2 |
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 <sojkam1@fel.cvut.cz>
-rw-r--r-- | include/image.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index 8f55627..84b46f2 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 |