mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
parent
9e368b64bc
commit
7d1e909088
2 changed files with 34 additions and 0 deletions
19
quickget
19
quickget
|
@ -160,6 +160,7 @@ function os_support() {
|
|||
android \
|
||||
archlinux \
|
||||
arcolinux \
|
||||
batocera \
|
||||
cachyos \
|
||||
debian \
|
||||
devuan \
|
||||
|
@ -264,6 +265,10 @@ function releases_fedora() {
|
|||
echo 33 34 35
|
||||
}
|
||||
|
||||
function releases_batocera() {
|
||||
echo 33
|
||||
}
|
||||
|
||||
function editions_fedora() {
|
||||
echo Workstation \
|
||||
Cinnamon \
|
||||
|
@ -662,6 +667,9 @@ function make_vm_config() {
|
|||
IMAGE_FILE="${1}"
|
||||
ISO_FILE="${2}"
|
||||
case "${OS}" in
|
||||
batocera)
|
||||
GUEST="batocera"
|
||||
IMAGE_TYPE="img";;
|
||||
dragonflybsd)
|
||||
GUEST="dragonflybsd"
|
||||
IMAGE_TYPE="iso";;
|
||||
|
@ -812,6 +820,13 @@ function get_arcolinux() {
|
|||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_batocera() {
|
||||
local HASH=""
|
||||
local ISO="batocera-x86_64-${RELEASE}-20220203.img.gz"
|
||||
local URL="https://updates.batocera.org/x86_64/stable/last"
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_cachyos() {
|
||||
local HASH=""
|
||||
local ISO="cachyos-${RELEASE}-x86_64.iso"
|
||||
|
@ -1717,6 +1732,10 @@ create_vm() {
|
|||
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
|
||||
ISO=$(ls ${VM_PATH} | grep -i '.iso')
|
||||
fi
|
||||
if [[ ${OS} == "batocera" ]] && [[ ${ISO} =~ ".gz" ]]; then
|
||||
gzip -d "${VM_PATH}/${ISO}"
|
||||
ISO="${ISO/.gz/}"
|
||||
fi
|
||||
|
||||
make_vm_config "${ISO}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue