From d91ce1aa08016fa3fb186be9e6ef425dad6f050f Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Tue, 27 Dec 2016 19:42:03 +0200 Subject: [PATCH] fs/tar: make --no-recursion effective The tar --no-recursion option is position sensitive. It only affects following file listing options. Move --no-recursion before the -T option to make it effective. This fixes duplication of entries in the generated rootfs.tar archive. Signed-off-by: Baruch Siach Signed-off-by: Peter Korsgaard --- fs/tar/tar.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tar/tar.mk b/fs/tar/tar.mk index b14c977d76..0e3eacbedf 100644 --- a/fs/tar/tar.mk +++ b/fs/tar/tar.mk @@ -8,7 +8,7 @@ TAR_OPTS := $(call qstrip,$(BR2_TARGET_ROOTFS_TAR_OPTIONS)) define ROOTFS_TAR_CMD (cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \ - tar $(TAR_OPTS) -cf $@ --null -T - --no-recursion --numeric-owner) + tar $(TAR_OPTS) -cf $@ --null --no-recursion -T - --numeric-owner) endef $(eval $(call ROOTFS_TARGET,tar)) -- 2.30.2