mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	fix: Host CPU (#499)
This commit is contained in:
		
							parent
							
								
									f089acc01a
								
							
						
					
					
						commit
						38611a7af2
					
				@ -53,9 +53,9 @@ if [ -z "$HOST_CPU" ]; then
 | 
			
		||||
  HOST_CPU=$(lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/  */ /g')
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -n "$HOST_CPU" ]; then
 | 
			
		||||
  HOST_CPU="${HOST_CPU%%,*},,"
 | 
			
		||||
else
 | 
			
		||||
HOST_CPU="${HOST_CPU%%,*},,"
 | 
			
		||||
 | 
			
		||||
if [ -z "$HOST_CPU" ]; then
 | 
			
		||||
  HOST_CPU="QEMU, Virtual CPU,"
 | 
			
		||||
  if [ "$ARCH" == "amd64" ]; then
 | 
			
		||||
    HOST_CPU="$HOST_CPU X86_64"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user