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

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

View File

@ -20,7 +20,12 @@ mount="$(mktemp -d --tmpdir)"
mount -o loop "$image" "$mount"
cd "$mount"
tar -cpSf - --acls --selinux --xattrs * | docker import - "$tag"
#this tar seems to cause issues such as rpmdb corruption
#tar -cpSf - --acls --selinux --xattrs * | docker import - "$tag"
tar --numeric owner -c . | docker import - "$tag"
cd - >& /dev/null
umount "$mount"
rmdir "$mount"