mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add debian current support
This commit is contained in:
		
							parent
							
								
									0fe5717447
								
							
						
					
					
						commit
						7afc9bf710
					
				
					 1 changed files with 38 additions and 0 deletions
				
			
		
							
								
								
									
										38
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										38
									
								
								quickget
									
										
									
									
									
								
							|  | @ -152,6 +152,7 @@ function list_csv() { | ||||||
| function os_support() { | function os_support() { | ||||||
|     echo android \ |     echo android \ | ||||||
|     archlinux \ |     archlinux \ | ||||||
|  |     debian \ | ||||||
|     elementary \ |     elementary \ | ||||||
|     freebsd \ |     freebsd \ | ||||||
|     fedora \ |     fedora \ | ||||||
|  | @ -199,6 +200,18 @@ function releases_archlinux() { | ||||||
|     echo latest |     echo latest | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | # later refactor these DE variants like languages and avoid the arch ? | ||||||
|  | function releases_debian() { | ||||||
|  |     echo 11.1.0-amd64-cinnamon \ | ||||||
|  |     11.1.0-amd64-gnome \ | ||||||
|  |     11.1.0-amd64-kde \ | ||||||
|  |     11.1.0-amd64-lxde \ | ||||||
|  |     11.1.0-amd64-lxqt \ | ||||||
|  |     11.1.0-amd64-mate \ | ||||||
|  |     11.1.0-amd64-standard \ | ||||||
|  |     11.1.0-amd64-xfce | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function releases_elementary() { | function releases_elementary() { | ||||||
|     echo 6.0 |     echo 6.0 | ||||||
| } | } | ||||||
|  | @ -677,6 +690,9 @@ function make_vm_config() { | ||||||
|     elif [ "${OS}" == "archlinux" ]; then |     elif [ "${OS}" == "archlinux" ]; then | ||||||
|         GUEST="linux" |         GUEST="linux" | ||||||
|         IMAGE_TYPE="iso" |         IMAGE_TYPE="iso" | ||||||
|  |     elif [ "${OS}" == "debian" ]; then | ||||||
|  |         GUEST="linux" | ||||||
|  |         IMAGE_TYPE="iso" | ||||||
|     elif [ "${OS}" == "elementary" ]; then |     elif [ "${OS}" == "elementary" ]; then | ||||||
|         GUEST="linux" |         GUEST="linux" | ||||||
|         IMAGE_TYPE="iso" |         IMAGE_TYPE="iso" | ||||||
|  | @ -829,6 +845,24 @@ function get_archlinux() { | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | function get_debian() { | ||||||
|  |     local HASH="" | ||||||
|  |     local ISO="" | ||||||
|  |     local URL="" | ||||||
|  |     local HASHLINE="" | ||||||
|  | 
 | ||||||
|  |     validate_release "releases_debian" | ||||||
|  |     URL="https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid" | ||||||
|  |     HASHLINE=$(wget -q -O- ${URL}/SHA512SUMS |grep ${RELEASE}.iso) | ||||||
|  |     ISO="$(echo ${HASHLINE} | awk '{print $NF}' )" | ||||||
|  |     HASH=$(echo ${HASHLINE} | cut -d\  -f1) | ||||||
|  | 
 | ||||||
|  |     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||||
|  |     check_hash "${ISO}" "${HASH}" | ||||||
|  |     make_vm_config "${ISO}" | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function get_elementary() { | function get_elementary() { | ||||||
|     local ISO="" |     local ISO="" | ||||||
|     local URL="" |     local URL="" | ||||||
|  | @ -1387,6 +1421,8 @@ if [ -n "${2}" ]; then | ||||||
|         get_android |         get_android | ||||||
|     elif [ "${OS}" == "archlinux" ]; then |     elif [ "${OS}" == "archlinux" ]; then | ||||||
|         get_archlinux |         get_archlinux | ||||||
|  |     elif [ "${OS}" == "debian" ]; then | ||||||
|  |         get_debian | ||||||
|     elif [ "${OS}" == "elementary" ]; then |     elif [ "${OS}" == "elementary" ]; then | ||||||
|         get_elementary |         get_elementary | ||||||
|     elif [ "${OS}" == "macos" ]; then |     elif [ "${OS}" == "macos" ]; then | ||||||
|  | @ -1476,6 +1512,8 @@ else | ||||||
|         releases_android |         releases_android | ||||||
|     elif [ "${OS}" == "archlinux" ]; then |     elif [ "${OS}" == "archlinux" ]; then | ||||||
|         releases_archlinux |         releases_archlinux | ||||||
|  |     elif [ "${OS}" == "debian" ]; then | ||||||
|  |         releases_debian | ||||||
|     elif [ "${OS}" == "elementary" ]; then |     elif [ "${OS}" == "elementary" ]; then | ||||||
|         releases_elementary |         releases_elementary | ||||||
|     elif [ "${OS}" == "freebsd" ]; then |     elif [ "${OS}" == "freebsd" ]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue