update tar with the adjustment kb found to avoid some corruption issues
This commit is contained in:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user