Skip to content

Commit 46c5404

Browse files
committed
make-debs.sh: invoke tar with --no-same-owner
When running as a normal user, tar does not attempt to preserve owners set on the tar content files. When running as root, it does. Containerized builds are running as root. Stop make-debs.sh from trying to set other owners for files, and leaving files in the host system with mapped UIDs other than the user running the container (which causes jenkins to be unable to clear the workspace). Signed-off-by: Dan Mick <[email protected]>
1 parent f19a8ab commit 46c5404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-debs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test -f "ceph-$vers.tar.bz2" || ./make-dist $vers
5050
#
5151
mkdir -p $releasedir
5252
mv ceph-$vers.tar.bz2 $releasedir/ceph_$vers.orig.tar.bz2
53-
tar -C $releasedir -jxf $releasedir/ceph_$vers.orig.tar.bz2
53+
tar -C $releasedir --no-same-owner -jxf $releasedir/ceph_$vers.orig.tar.bz2
5454

5555
#
5656
# Optionally disable -dbg package builds

0 commit comments

Comments
 (0)