mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Update mkimage-yum to not read /etc/redhat-release from the host
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
		
							parent
							
								
									d373cb8c89
								
							
						
					
					
						commit
						d29ee876ac
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -76,7 +76,7 @@ rm -rf "$target"/var/cache/ldconfig/*
 | 
			
		|||
 | 
			
		||||
version=
 | 
			
		||||
if [ -r "$target"/etc/redhat-release ]; then
 | 
			
		||||
    version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' /etc/redhat-release)"
 | 
			
		||||
    version="$(sed 's/^[^0-9\]*\([0-9.]\+\).*$/\1/' "$target"/etc/redhat-release)"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z "$version" ]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue