mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add OracleLinux Support
No checksum checking yet
This commit is contained in:
		
							parent
							
								
									4080bf8048
								
							
						
					
					
						commit
						6245b654dc
					
				
					 1 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										40
									
								
								quickget
									
										
									
									
									
								
							|  | @ -49,6 +49,7 @@ function pretty_name() { | |||
|     macos)              PRETTY_NAME="macOS";; | ||||
|     openbsd)            PRETTY_NAME="OpenBSD";; | ||||
|     opensuse)           PRETTY_NAME="openSUSE";; | ||||
|     oraclelinux)        PRETTY_NAME="Oracle Linux";; | ||||
|     popos)              PRETTY_NAME="Pop!_OS";; | ||||
|     regolith)           PRETTY_NAME="Regolith Linux";; | ||||
|     rockylinux)         PRETTY_NAME="Rocky Linux";; | ||||
|  | @ -168,6 +169,7 @@ function os_support() { | |||
|     macos \ | ||||
|     openbsd \ | ||||
|     opensuse \ | ||||
|     oraclelinux \ | ||||
|     popos \ | ||||
|     regolith \ | ||||
|     rockylinux \ | ||||
|  | @ -262,6 +264,14 @@ function releases_opensuse(){ | |||
|     tumbleweed | ||||
| } | ||||
| 
 | ||||
| function releases_oraclelinux() { | ||||
|     echo 8.4 \ | ||||
|     8.3 \ | ||||
|     8.2 \ | ||||
|     7.9 \ | ||||
|     7.8 | ||||
| } | ||||
| 
 | ||||
| function releases_macos() { | ||||
|     echo high-sierra \ | ||||
|     mojave \ | ||||
|  | @ -695,6 +705,9 @@ function make_vm_config() { | |||
|     elif [ "${OS}" == "opensuse" ]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|     elif [ "${OS}" == "oraclelinux" ]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|     elif [ "${OS}" == "popos" ]; then | ||||
|         GUEST="linux" | ||||
|         IMAGE_TYPE="iso" | ||||
|  | @ -1024,6 +1037,29 @@ function get_opensuse() { | |||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_oraclelinux() { | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     local arch="x86_64" | ||||
|      | ||||
|     local majorver=${RELEASE,1,1} | ||||
|     local minorver=${RELEASE,3,1} | ||||
|      | ||||
|     local baseurl="https://yum.oracle.com/ISOS/OracleLinux/OL${majorver}/u${minorver}/${arch}/" | ||||
| #   local baseurl="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/${arch}" | ||||
| 
 | ||||
|     validate_release "releases_oraclelinux" | ||||
|     ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso" | ||||
|     URL="${baseurl}/${ISO}" | ||||
| #    HASH=$(wget -q -O- "${baseurl}/CHECKSUM" | grep "SHA256 (${ISO})" | grep -E -i -w -o '[0-9a-z]{64}') | ||||
| 
 | ||||
|     web_get "${URL}" "${VM_PATH}" | ||||
| #    check_hash "${ISO}" "${HASH}" | ||||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
| function get_macos() { | ||||
|     local BOARD_ID="" | ||||
|     local CWD="" | ||||
|  | @ -1361,6 +1397,8 @@ if [ -n "${2}" ]; then | |||
|         get_openbsd | ||||
|     elif [ "${OS}" == "opensuse" ]; then | ||||
|         get_opensuse | ||||
|     elif [ "${OS}" == "oraclelinux" ]; then | ||||
|         get_oraclelinux | ||||
|   elif [ "${OS}" == "popos" ]; then | ||||
|         if [ -n "${3}" ]; then | ||||
|             DRIVER="${3}" | ||||
|  | @ -1442,6 +1480,8 @@ else | |||
|         releases_nixos | ||||
|     elif [ "${OS}" == "opensuse" ]; then | ||||
|         releases_opensuse | ||||
|     elif [ "${OS}" == "oraclelinux" ]; then | ||||
|         releases_oraclelinux | ||||
|     elif [ "${OS}" == "openbsd" ]; then | ||||
|         releases_openbsd | ||||
|     elif [ "${OS}" == "macos" ]; then | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue