mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add support for DragonFlyBSD (#378)
* Add support for DragonFlyBSD * Add DragonFlyBSD to README
This commit is contained in:
parent
86f3d46802
commit
4f201949cd
2 changed files with 24 additions and 1 deletions
|
@ -215,6 +215,7 @@ Other Operating Systems
|
||||||
- `cachyos` (CachyOS)
|
- `cachyos` (CachyOS)
|
||||||
- `debian` (Debian)
|
- `debian` (Debian)
|
||||||
- `devuan` (Devuan)
|
- `devuan` (Devuan)
|
||||||
|
`dragonflybsd` (DragonFlyBSD)
|
||||||
- `elementary` (elementary OS)
|
- `elementary` (elementary OS)
|
||||||
- `fedora` (Fedora)
|
- `fedora` (Fedora)
|
||||||
- `freebsd` (FreeBSD)
|
- `freebsd` (FreeBSD)
|
||||||
|
|
24
quickget
24
quickget
|
@ -36,6 +36,7 @@ function pretty_name() {
|
||||||
archlinux) PRETTY_NAME="Arch Linux";;
|
archlinux) PRETTY_NAME="Arch Linux";;
|
||||||
arcolinux) PRETTY_NAME="Arco Linux";;
|
arcolinux) PRETTY_NAME="Arco Linux";;
|
||||||
cachyos) PRETTY_NAME="CachyOS";;
|
cachyos) PRETTY_NAME="CachyOS";;
|
||||||
|
dragonflybsd) PRETTY_NAME="DragonFlyBSD";;
|
||||||
elementary) PRETTY_NAME="elementary OS";;
|
elementary) PRETTY_NAME="elementary OS";;
|
||||||
freebsd) PRETTY_NAME="FreeBSD";;
|
freebsd) PRETTY_NAME="FreeBSD";;
|
||||||
garuda) PRETTY_NAME="Garuda Linux";;
|
garuda) PRETTY_NAME="Garuda Linux";;
|
||||||
|
@ -161,6 +162,7 @@ function os_support() {
|
||||||
cachyos \
|
cachyos \
|
||||||
debian \
|
debian \
|
||||||
devuan \
|
devuan \
|
||||||
|
dragonflybsd \
|
||||||
elementary \
|
elementary \
|
||||||
fedora \
|
fedora \
|
||||||
freebsd \
|
freebsd \
|
||||||
|
@ -248,6 +250,10 @@ function releases_devuan() {
|
||||||
echo beowulf chimaera
|
echo beowulf chimaera
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function releases_dragonflybsd() {
|
||||||
|
echo 6.2.1
|
||||||
|
}
|
||||||
|
|
||||||
function releases_elementary() {
|
function releases_elementary() {
|
||||||
echo 6.1
|
echo 6.1
|
||||||
}
|
}
|
||||||
|
@ -600,6 +606,9 @@ function make_vm_config() {
|
||||||
IMAGE_FILE="${1}"
|
IMAGE_FILE="${1}"
|
||||||
ISO_FILE="${2}"
|
ISO_FILE="${2}"
|
||||||
case "${OS}" in
|
case "${OS}" in
|
||||||
|
dragonflybsd)
|
||||||
|
GUEST="dragonflybsd"
|
||||||
|
IMAGE_TYPE="iso";;
|
||||||
freebsd|ghostbsd)
|
freebsd|ghostbsd)
|
||||||
GUEST="freebsd"
|
GUEST="freebsd"
|
||||||
IMAGE_TYPE="iso";;
|
IMAGE_TYPE="iso";;
|
||||||
|
@ -646,7 +655,7 @@ EOF
|
||||||
# OS specific tweaks
|
# OS specific tweaks
|
||||||
case ${OS} in
|
case ${OS} in
|
||||||
alma|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
|
alma|oraclelinux|rockylinux) echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
|
||||||
haiku|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";;
|
dragonflybsd|haiku|openbsd|netbsd|slackware|tails) echo "boot=\"legacy\"" >> "${CONF_FILE}";;
|
||||||
kolibrios)
|
kolibrios)
|
||||||
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
||||||
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
|
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
|
||||||
|
@ -779,6 +788,19 @@ function get_devuan() {
|
||||||
echo "${URL}/${ISO} ${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_dragonflybsd() {
|
||||||
|
local HASH=""
|
||||||
|
local ISO=""
|
||||||
|
local URL=""
|
||||||
|
|
||||||
|
URL="http://mirror-master.dragonflybsd.org/iso-images"
|
||||||
|
ISO="dfly-x86_64-${RELEASE}_REL.iso"
|
||||||
|
HASH=$(wget -q -O- "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
|
||||||
|
web_get "${URL}/${ISO}" "${VM_PATH}"
|
||||||
|
check_hash "${ISO}" "${HASH}"
|
||||||
|
make_vm_config "${ISO}"
|
||||||
|
}
|
||||||
|
|
||||||
function get_elementary() {
|
function get_elementary() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO="elementaryos-${RELEASE}-stable.20211218-rc.iso"
|
local ISO="elementaryos-${RELEASE}-stable.20211218-rc.iso"
|
||||||
|
|
Loading…
Reference in a new issue