build: Drop user/group ID/name from sysupgrade.tar
Tar will automatically record the user/group ID and name for files/directories. This reduces the reproducibility of the sysupgrade.tar because most of the people don't use the same username as the OpenWrt buildserver. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
		 Sven Eckelmann
					Sven Eckelmann
				
			
				
					committed by
					
						 Mathias Kresin
						Mathias Kresin
					
				
			
			
				
	
			
			
			 Mathias Kresin
						Mathias Kresin
					
				
			
						parent
						
							894bcf59dc
						
					
				
				
					commit
					1afe3d8443
				
			| @@ -61,7 +61,7 @@ if [ -n "$SOURCE_DATE_EPOCH" ]; then | |||||||
| 	mtime="--mtime=@${SOURCE_DATE_EPOCH}" | 	mtime="--mtime=@${SOURCE_DATE_EPOCH}" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| (cd "$tmpdir"; tar --sort=name -cvf sysupgrade.tar sysupgrade-${board} ${mtime}) | (cd "$tmpdir"; tar --sort=name --owner=0 --group=0 --numeric-owner -cvf sysupgrade.tar sysupgrade-${board} ${mtime}) | ||||||
| err="$?" | err="$?" | ||||||
| if [ -e "$tmpdir/sysupgrade.tar" ]; then | if [ -e "$tmpdir/sysupgrade.tar" ]; then | ||||||
| 	cp "$tmpdir/sysupgrade.tar" "$outfile" | 	cp "$tmpdir/sysupgrade.tar" "$outfile" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user