[OpenWrt-Devel] [PATCH 10/13] include/image: don't save gzip name/timestamp metadata
Alexander Couzens
lynxis at fe80.eu
Mon Jan 25 15:49:32 EST 2016
Signed-off-by: bryan newbold <bnewbold at robocracy.org>
---
include/image.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/image.mk b/include/image.mk
index d471788..bf400f4 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -250,10 +250,9 @@ define Image/mkfs/cpiogz
endef
define Image/mkfs/targz
- $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz \
- --numeric-owner --owner=0 --group=0 --sort=name \
+ $(TAR) -cp --numeric-owner --owner=0 --group=0 --sort=name \
$(if $(SOURCE_DATE_EPOCH),--mtime="$(SOURCE_DATE_EPOCH)") \
- -C $(TARGET_DIR)/ .
+ -C $(TARGET_DIR)/ . | gzip -9n > $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz
endef
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))
--
2.7.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list