mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor Rocky Linux support to add editions
This commit is contained in:
		
							parent
							
								
									a78ab882d3
								
							
						
					
					
						commit
						830c38818a
					
				
					 1 changed files with 12 additions and 4 deletions
				
			
		
							
								
								
									
										16
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								quickget
									
										
									
									
									
								
							|  | @ -419,6 +419,11 @@ function releases_rockylinux() { | ||||||
|     8.0 |     8.0 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | function editions_rockylinux() { | ||||||
|  |     echo minimal \ | ||||||
|  |     dvd1 | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function releases_slackware() { | function releases_slackware() { | ||||||
|     echo 14.2 \ |     echo 14.2 \ | ||||||
|     15.0 \ |     15.0 \ | ||||||
|  | @ -1102,15 +1107,18 @@ function get_zorin() { | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_rocky() { | function get_rockylinux() { | ||||||
|  |     local EDITION="" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local ISOTYPE="minimal" |  | ||||||
|     local URL="" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     validate_release "releases_rockylinux" |     if [ -n "${1}" ]; then | ||||||
|  |       EDITION="${1}" | ||||||
|  |     fi | ||||||
|  | 
 | ||||||
|     URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64" |     URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64" | ||||||
|     ISO="Rocky-${RELEASE}-x86_64-${ISOTYPE}.iso" |     ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso" | ||||||
|     HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) |     HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |     check_hash "${ISO}" "${HASH}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue