mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	fix: Default to DSM 7.0.1 on ARM systems
This commit is contained in:
		
							parent
							
								
									67d57005a7
								
							
						
					
					
						commit
						585adabaee
					
				@ -9,9 +9,11 @@ DL="https://global.synologydownload.com/download/DSM"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if [ -z "$URL" ]; then
 | 
					if [ -z "$URL" ]; then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  URL="$DL/release/7.2/64561/DSM_VirtualDSM_64561.pat"
 | 
					  if [ "$ARCH" == "amd64" ]; then
 | 
				
			||||||
  #URL="$DL/release/7.1.1/42962-1/DSM_VirtualDSM_42962.pat"
 | 
					    URL="$DL/release/7.2/64561/DSM_VirtualDSM_64561.pat"
 | 
				
			||||||
  #URL="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
 | 
					  else
 | 
				
			||||||
 | 
					    URL="$DL/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -98,10 +100,10 @@ if [ -f "${RDC}" ]; then
 | 
				
			|||||||
  mv /run/extract/scemd /run/extract/syno_extract_system_patch
 | 
					  mv /run/extract/scemd /run/extract/syno_extract_system_patch
 | 
				
			||||||
  chmod +x /run/extract/syno_extract_system_patch
 | 
					  chmod +x /run/extract/syno_extract_system_patch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  rm -rf "$TMP" && mkdir -p "$TMP"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					rm -rf "$TMP" && mkdir -p "$TMP"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
info "Install: Downloading $(basename "$URL")..."
 | 
					info "Install: Downloading $(basename "$URL")..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PAT="/$BASE.pat"
 | 
					PAT="/$BASE.pat"
 | 
				
			||||||
@ -136,6 +138,7 @@ else
 | 
				
			|||||||
    apt-get -qq --no-install-recommends -y install qemu-user > /dev/null
 | 
					    apt-get -qq --no-install-recommends -y install qemu-user > /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    export DEBIAN_FRONTEND=""
 | 
					    export DEBIAN_FRONTEND=""
 | 
				
			||||||
 | 
					    export DEBCONF_NOWARNINGS=""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -147,9 +150,10 @@ else
 | 
				
			|||||||
    { qemu-x86_64 /run/extract/syno_extract_system_patch "$PAT" "$TMP/."; rc=$?; } || :
 | 
					    { qemu-x86_64 /run/extract/syno_extract_system_patch "$PAT" "$TMP/."; rc=$?; } || :
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (( rc != 0 )) && error "Failed to extract PAT file, reason $rc" && exit 63
 | 
					 | 
				
			||||||
  export LD_LIBRARY_PATH=""
 | 
					  export LD_LIBRARY_PATH=""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  (( rc != 0 )) && error "Failed to extract PAT file, reason $rc" && exit 63
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HDA="$TMP/hda1"
 | 
					HDA="$TMP/hda1"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user