mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add reactos (#423)
* Add initial support for ReactOS * Move code block to be able to override default cdrom settings
This commit is contained in:
		
							parent
							
								
									52f298ba8b
								
							
						
					
					
						commit
						600ada52ae
					
				
					 2 changed files with 65 additions and 15 deletions
				
			
		
							
								
								
									
										29
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										29
									
								
								quickget
									
										
									
									
									
								
							|  | @ -57,6 +57,7 @@ function pretty_name() { | |||
|     opensuse)           PRETTY_NAME="openSUSE";; | ||||
|     oraclelinux)        PRETTY_NAME="Oracle Linux";; | ||||
|     popos)              PRETTY_NAME="Pop!_OS";; | ||||
|     reactos)            PRETTY_NAME="ReactOS";; | ||||
|     regolith)           PRETTY_NAME="Regolith Linux";; | ||||
|     rockylinux)         PRETTY_NAME="Rocky Linux";; | ||||
|     ubuntu-budgie)      PRETTY_NAME="Ubuntu Budgie";; | ||||
|  | @ -196,6 +197,7 @@ function os_support() { | |||
|     opensuse \ | ||||
|     oraclelinux \ | ||||
|     popos \ | ||||
|     reactos \ | ||||
|     regolith \ | ||||
|     rockylinux \ | ||||
|     slackware \ | ||||
|  | @ -437,6 +439,10 @@ function editions_popos() { | |||
|     echo intel nvidia | ||||
| } | ||||
| 
 | ||||
| function releases_reactos() { | ||||
|     echo latest | ||||
| } | ||||
| 
 | ||||
| function releases_regolith() { | ||||
|     echo focal impish | ||||
| } | ||||
|  | @ -719,6 +725,9 @@ function make_vm_config() { | |||
|         openbsd) | ||||
|             GUEST="openbsd" | ||||
|             IMAGE_TYPE="iso";; | ||||
|         reactos) | ||||
|             GUEST="reactos" | ||||
|             IMAGE_TYPE="iso";; | ||||
|         windows) | ||||
|             GUEST="windows" | ||||
|             IMAGE_TYPE="iso";; | ||||
|  | @ -765,6 +774,11 @@ EOF | |||
|             echo "disk_size=\"2G\"" >> "${CONF_FILE}" | ||||
|             echo "ram=\"128M\"" >> "${CONF_FILE}" | ||||
|             ;; | ||||
|           reactos) | ||||
|             echo "boot=\"legacy\"" >> "${CONF_FILE}" | ||||
|             echo "disk_size=\"12G\"" >> "${CONF_FILE}" | ||||
|             echo "ram=\"2048M\"" >> "${CONF_FILE}" | ||||
|             ;; | ||||
|           macos) echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}";; | ||||
|         esac | ||||
| 
 | ||||
|  | @ -1307,6 +1321,16 @@ function get_popos() { | |||
|     echo "${URL} ${HASH}" | ||||
| } | ||||
| 
 | ||||
| function get_reactos() { | ||||
|     local HASH="" | ||||
|     local URL="" | ||||
|     local TMPURL="" | ||||
| 
 | ||||
|     TMPURL=$(wget -q -S -O- --max-redirect=0 "https://sourceforge.net/projects/reactos/files/latest/download" 2>&1 | grep Location | cut -d' ' -f4) | ||||
|     URL=${TMPURL%\?*} | ||||
|     echo "${URL} ${HASH}" | ||||
| } | ||||
| 
 | ||||
| function get_regolith() { | ||||
|     local EDITION="${1:-}" | ||||
|     local HASH="" | ||||
|  | @ -1843,6 +1867,11 @@ create_vm() { | |||
|         ISO="${ISO/.gz/}" | ||||
|     fi | ||||
| 
 | ||||
|     if [ ${OS} == "reactos" ] && [[ $ISO =~ ".zip" ]]; then | ||||
|         unzip ${VM_PATH}/${ISO} -d ${VM_PATH} | ||||
|         ISO=$(ls ${VM_PATH} | grep -i '.iso' | grep -v '.zip') | ||||
|     fi | ||||
| 
 | ||||
|     make_vm_config "${ISO}" | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue