mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Merge remote-tracking branch 'kolibri/master' into merging-updated-distros
This commit is contained in:
		
						commit
						1d0312f430
					
				
					 2 changed files with 61 additions and 2 deletions
				
			
		
							
								
								
									
										29
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										29
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -228,6 +228,7 @@ function vm_boot() { | ||||||
|   local KERNEL_NODE="" |   local KERNEL_NODE="" | ||||||
|   local KERNEL_VER="?" |   local KERNEL_VER="?" | ||||||
|   local LSB_DESCRIPTION="Unknown OS" |   local LSB_DESCRIPTION="Unknown OS" | ||||||
|  |   local MACHINETYPE="q35" | ||||||
|   local MAC_BOOTLOADER="" |   local MAC_BOOTLOADER="" | ||||||
|   local MAC_MISSING="" |   local MAC_MISSING="" | ||||||
|   local MAC_DISK_DEV="ide-hd,bus=ahci.2" |   local MAC_DISK_DEV="ide-hd,bus=ahci.2" | ||||||
|  | @ -463,6 +464,18 @@ function vm_boot() { | ||||||
|         disk_size="16G" |         disk_size="16G" | ||||||
|       fi |       fi | ||||||
|       ;; |       ;; | ||||||
|  |     kolibrios) | ||||||
|  |       CPU="-cpu qemu32,kvm=on" | ||||||
|  |       if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then | ||||||
|  |         CPU="${CPU},topoext" | ||||||
|  |       fi | ||||||
|  |       MACHINETYPE="pc" | ||||||
|  |       NET_DEVICE="rtl8139" | ||||||
|  |       GUEST_TWEAKS="-boot d" | ||||||
|  |       if [ -z "${disk_size}" ]; then | ||||||
|  |         disk_size="256M" | ||||||
|  |       fi | ||||||
|  |       ;; | ||||||
|     macos) |     macos) | ||||||
|       #https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ |       #https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ | ||||||
|       # A CPU with SSE4.1 support is required for >= macOS Sierra |       # A CPU with SSE4.1 support is required for >= macOS Sierra | ||||||
|  | @ -591,7 +604,7 @@ function vm_boot() { | ||||||
|     fi |     fi | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|   if [ "${DISK_USED}" == "yes" ]; then |   if [ "${DISK_USED}" == "yes" ] && [ "${guest_os}" != "kolibrios" ]; then | ||||||
|     # If there is a disk image that appears to be used do not boot from installation media. |     # If there is a disk image that appears to be used do not boot from installation media. | ||||||
|     iso="" |     iso="" | ||||||
|     img="" |     img="" | ||||||
|  | @ -833,7 +846,7 @@ function vm_boot() { | ||||||
| 
 | 
 | ||||||
|   # shellcheck disable=SC2054,SC2206,SC2140 |   # shellcheck disable=SC2054,SC2206,SC2140 | ||||||
|   args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid" |   args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid" | ||||||
|          -enable-kvm -machine q35,smm=${SMM},vmport=off ${GUEST_TWEAKS} |          -enable-kvm -machine ${MACHINETYPE},smm=${SMM},vmport=off ${GUEST_TWEAKS} | ||||||
|          ${CPU} ${SMP} |          ${CPU} ${SMP} | ||||||
|          -m ${RAM_VM} ${BALLOON} |          -m ${RAM_VM} ${BALLOON} | ||||||
|          -smbios type=2,manufacturer="Quickemu Project",product="Quickemu",version="${VERSION}",serial="0xDEADBEEF",location="quickemu.com",asset="${VMNAME}" |          -smbios type=2,manufacturer="Quickemu Project",product="Quickemu",version="${VERSION}",serial="0xDEADBEEF",location="quickemu.com",asset="${VMNAME}" | ||||||
|  | @ -891,6 +904,13 @@ function vm_boot() { | ||||||
|     args+=(-drive if=floppy,format=raw,file="${floppy}") |     args+=(-drive if=floppy,format=raw,file="${floppy}") | ||||||
|   fi |   fi | ||||||
| 
 | 
 | ||||||
|  |   # Since there is bug (probably) in KolibriOS: cdrom indexes 0 or 1 make system show an extra unexisting iso, so we use index=2 | ||||||
|  |   if [ -n "${iso}" ] && [ "${guest_os}" == "kolibrios" ]; then | ||||||
|  |     # shellcheck disable=SC2054 | ||||||
|  |     args+=(-drive media=cdrom,index=2,file="${iso}") | ||||||
|  |     iso="" | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   if [ -n "${iso}" ]; then |   if [ -n "${iso}" ]; then | ||||||
|     # shellcheck disable=SC2054 |     # shellcheck disable=SC2054 | ||||||
|     args+=(-drive media=cdrom,index=0,file="${iso}") |     args+=(-drive media=cdrom,index=0,file="${iso}") | ||||||
|  | @ -922,6 +942,11 @@ function vm_boot() { | ||||||
|     # shellcheck disable=SC2054,SC2206 |     # shellcheck disable=SC2054,SC2206 | ||||||
|     args+=(-device ${MAC_DISK_DEV},drive=SystemDisk |     args+=(-device ${MAC_DISK_DEV},drive=SystemDisk | ||||||
|            -drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO}) |            -drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO}) | ||||||
|  |   elif [ "${guest_os}" == "kolibrios" ]; then | ||||||
|  |     # shellcheck disable=SC2054,SC2206 | ||||||
|  |     args+=(-device ahci,id=ahci | ||||||
|  |            -device ide-hd,bus=ahci.0,drive=SystemDisk | ||||||
|  |            -drive id=SystemDisk,if=none,format=qcow2,file="${disk_img}" ${STATUS_QUO}) | ||||||
|   else |   else | ||||||
|     # shellcheck disable=SC2054,SC2206 |     # shellcheck disable=SC2054,SC2206 | ||||||
|     args+=(-device virtio-blk-pci,drive=SystemDisk |     args+=(-device virtio-blk-pci,drive=SystemDisk | ||||||
|  |  | ||||||
							
								
								
									
										34
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										34
									
								
								quickget
									
										
									
									
									
								
							|  | @ -43,6 +43,7 @@ function pretty_name() { | ||||||
|     freebsd)            PRETTY_NAME="FreeBSD";; |     freebsd)            PRETTY_NAME="FreeBSD";; | ||||||
|     garuda)             PRETTY_NAME="Garuda Linux";; |     garuda)             PRETTY_NAME="Garuda Linux";; | ||||||
|     kdeneon)            PRETTY_NAME="KDE Neon";; |     kdeneon)            PRETTY_NAME="KDE Neon";; | ||||||
|  |     kolibrios)          PRETTY_NAME="KolibriOS";; | ||||||
|     linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";; |     linuxmint-cinnamon) PRETTY_NAME="Linux Mint Cinnamon";; | ||||||
|     linuxmint-mate)     PRETTY_NAME="Linux Mint MATE";; |     linuxmint-mate)     PRETTY_NAME="Linux Mint MATE";; | ||||||
|     linuxmint-xfce)     PRETTY_NAME="Linux Mint XFCE";; |     linuxmint-xfce)     PRETTY_NAME="Linux Mint XFCE";; | ||||||
|  | @ -172,6 +173,7 @@ function os_support() { | ||||||
|     garuda \ |     garuda \ | ||||||
|     kali \ |     kali \ | ||||||
|     kdeneon \ |     kdeneon \ | ||||||
|  |     kolibrios \ | ||||||
|     kubuntu \ |     kubuntu \ | ||||||
|     linuxmint-cinnamon \ |     linuxmint-cinnamon \ | ||||||
|     linuxmint-mate \ |     linuxmint-mate \ | ||||||
|  | @ -280,6 +282,10 @@ function releases_kdeneon() { | ||||||
|     developer |     developer | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | function releases_kolibrios() { | ||||||
|  |     echo latest-iso | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function releases_linuxmint(){ | function releases_linuxmint(){ | ||||||
|     echo 20.2 |     echo 20.2 | ||||||
| } | } | ||||||
|  | @ -550,6 +556,9 @@ function make_vm_config() { | ||||||
|     elif [ "${OS}" == "kdeneon" ]; then |     elif [ "${OS}" == "kdeneon" ]; then | ||||||
|         GUEST="linux" |         GUEST="linux" | ||||||
|         IMAGE_TYPE="iso" |         IMAGE_TYPE="iso" | ||||||
|  |     elif [ "${OS}" == "kolibrios" ]; then | ||||||
|  |         GUEST="kolibrios" | ||||||
|  |         IMAGE_TYPE="iso" | ||||||
|     elif [[ "${OS}" == *"linuxmint"* ]]; then |     elif [[ "${OS}" == *"linuxmint"* ]]; then | ||||||
|         GUEST="linux" |         GUEST="linux" | ||||||
|         IMAGE_TYPE="iso" |         IMAGE_TYPE="iso" | ||||||
|  | @ -606,9 +615,15 @@ EOF | ||||||
|         if [ -n "${ISO_FILE}" ]; then |         if [ -n "${ISO_FILE}" ]; then | ||||||
|             echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf" |             echo "fixed_iso=\"${VM_PATH}/${ISO_FILE}\"" >> "${OS}-${RELEASE}.conf" | ||||||
|         fi |         fi | ||||||
|  | 
 | ||||||
|         if [ "${OS}" == "alma"  ] && [ ${ISOTYPE} == "dvd" ]; then |         if [ "${OS}" == "alma"  ] && [ ${ISOTYPE} == "dvd" ]; then | ||||||
|             echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" |             echo "disk_size=\"32G\"" >> "${OS}-${RELEASE}.conf" | ||||||
|         fi |         fi | ||||||
|  | 
 | ||||||
|  |         if [ "${OS}" == "kolibrios" ]; then | ||||||
|  |             echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" | ||||||
|  |         fi | ||||||
|  | 
 | ||||||
|         if [ "${OS}" == "openbsd" ]; then |         if [ "${OS}" == "openbsd" ]; then | ||||||
|             echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" |             echo "boot=\"legacy\"" >> "${OS}-${RELEASE}.conf" | ||||||
|         fi |         fi | ||||||
|  | @ -853,6 +868,21 @@ function get_kdeneon() { | ||||||
|     make_vm_config "${ISO}" |     make_vm_config "${ISO}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | function get_kolibrios() { | ||||||
|  |     local HASH="" | ||||||
|  |     local ISO="" | ||||||
|  |     local URL="" | ||||||
|  | 
 | ||||||
|  |     validate_release "releases_kolibrios" | ||||||
|  |     URL="https://builds.kolibrios.org/eng/${RELEASE}.7z" | ||||||
|  |     web_get "${URL}" "${VM_PATH}" | ||||||
|  |     7z e "${VM_PATH}/${RELEASE}.7z" "kolibri.iso" | ||||||
|  |     ISO="kolibrios-${RELEASE}.iso" | ||||||
|  |     mv "kolibri.iso" "${VM_PATH}/${ISO}" | ||||||
|  |     rm "${VM_PATH}/${RELEASE}.7z" | ||||||
|  |     make_vm_config "${ISO}" | ||||||
|  | } | ||||||
|  | 
 | ||||||
| function get_linuxmint() { | function get_linuxmint() { | ||||||
|     local FLAVOR="" |     local FLAVOR="" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|  | @ -1684,6 +1714,8 @@ if [ -n "${2}" ]; then | ||||||
|         get_kali |         get_kali | ||||||
|     elif [ "${OS}" == "kdeneon" ]; then |     elif [ "${OS}" == "kdeneon" ]; then | ||||||
|         get_kdeneon |         get_kdeneon | ||||||
|  |     elif [ "${OS}" == "kolibrios" ]; then | ||||||
|  |         get_kolibrios | ||||||
|     elif [[ "${OS}" == *"linuxmint-"* ]]; then |     elif [[ "${OS}" == *"linuxmint-"* ]]; then | ||||||
|         get_linuxmint |         get_linuxmint | ||||||
|     elif [[ "${OS}" == *"nixos-"* ]]; then |     elif [[ "${OS}" == *"nixos-"* ]]; then | ||||||
|  | @ -1775,6 +1807,8 @@ else | ||||||
|         releases_garuda |         releases_garuda | ||||||
|     elif [ "${OS}" == "kali" ]; then |     elif [ "${OS}" == "kali" ]; then | ||||||
|         releases_kali |         releases_kali | ||||||
|  |     elif [ "${OS}" == "kolibrios" ]; then | ||||||
|  |         releases_kolibrios | ||||||
|     elif [[ "${OS}" == *"linuxmint-"* ]]; then |     elif [[ "${OS}" == *"linuxmint-"* ]]; then | ||||||
|         releases_linuxmint |         releases_linuxmint | ||||||
|     elif [[ "${OS}" == *"nixos-"* ]]; then |     elif [[ "${OS}" == *"nixos-"* ]]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue