aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/package/buildtar3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 995c1eafaff6..e046bff33589 100644
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -125,12 +125,11 @@ esac
125# Create the tarball 125# Create the tarball
126# 126#
127( 127(
128 cd "${tmpdir}"
129 opts= 128 opts=
130 if tar --owner=root --group=root --help >/dev/null 2>&1; then 129 if tar --owner=root --group=root --help >/dev/null 2>&1; then
131 opts="--owner=root --group=root" 130 opts="--owner=root --group=root"
132 fi 131 fi
133 tar cf - boot/* lib/* $opts | ${compress} > "${tarball}${file_ext}" 132 tar cf - -C "$tmpdir" boot/ lib/ $opts | ${compress} > "${tarball}${file_ext}"
134) 133)
135 134
136echo "Tarball successfully created in ${tarball}${file_ext}" 135echo "Tarball successfully created in ${tarball}${file_ext}"