From 1dbb576c99da0956507f1e87663fe112a2fb1d51 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Tue, 10 Dec 2019 15:00:12 +0100 Subject: [PATCH] Preserve extended attributes in tarball When specifying a tarball as output format, the extended attributes are lost. This leads to programs like ping fail to run as normal user. Therefore preserve the extended attributes when generating the tarball. Signed-off-by: Benjamin Drung --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index b9b7af5..9996f16 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -2836,7 +2836,7 @@ sub main() { } my $exitstatus = 0; - my @taropts = ('--sort=name', "--mtime=\@$mtime", '--clamp-mtime', '--numeric-owner', '--one-file-system', '-c', '--exclude=./dev'); + my @taropts = ('--sort=name', "--mtime=\@$mtime", '--clamp-mtime', '--numeric-owner', '--one-file-system', '--xattrs', '-c', '--exclude=./dev'); # disable signals so that we can fork and change behaviour of the signal # handler in the parent and child without getting interrupted