update tar with the adjustment kb found to avoid some corruption issues

This commit is contained in:
Jim Perrin 2014-05-23 09:23:30 -05:00
parent cb53fe5ed1
commit 488faea949

View File

@ -18,7 +18,11 @@ mount="$(mktemp -d --tmpdir)"
mount -o loop "$image" "$mount"
cd "$mount"
tar -cpSf - --acls --selinux --xattrs * | bzip2 > ${image}.tar.bz2
#this tar seems to cause issues such as rpmdb corruption
#tar -cpSf - --acls --selinux --xattrs * | bzip2 > ${image}.tar.bz2
# This one appears to work fine for docker creation
tar --numeric owner -c . | bzip2 > ${image}.tar.bz2
cd - >& /dev/null
umount "$mount"
rmdir "$mount"