From be2bb0bb7e5a822d66a331307c2aa8f8ae15fb8e Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sat, 2 May 2020 23:55:05 +0200 Subject: [PATCH] do not emit a tarball with xattrs for squashfs and ext2 output because tar2sqfs and genext2fs do not support extended attributes --- mmdebstrap | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 6ace61a..425ebe6 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -4061,12 +4061,19 @@ sub main() { '--clamp-mtime', '--numeric-owner', '--one-file-system', - '--xattrs', '--format=pax', '--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime', '-c', '--exclude=./dev' ); + # tar2sqfs and genext2fs do not support extended attributes + if ($format eq "squashfs") { + warning "tar2sqfs does not support extended attributes"; + } elsif ($format eq "ext2") { + warning "genext2fs does not support extended attributes"; + } else { + push @taropts, '--xattrs'; + } # disable signals so that we can fork and change behaviour of the signal # handler in the parent and child without getting interrupted @@ -5314,7 +5321,8 @@ C utility, which will create an xz compressed squashfs image with a blocksize of 1048576 bytes in I. The special I C<-> does not work with this format because C can only write to a regular file. If you need your squashfs image be named C<->, then just explicitly pass the -relative path to it like F<./->. +relative path to it like F<./->. Since C does not support extended +attributes, the resulting image will not contain them. =item B @@ -5326,7 +5334,8 @@ with this format because C can only write to a regular file. If you need your ext2 image be named C<->, then just explicitly pass the relative path to it like F<./->. To convert the result to an ext3 image, use C and to convert it to ext4, use C +extents,uninit_bg,dir_index,has_journal TARGET>. Since C does not +support extended attributes, the resulting image will not contain them. =back