Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for DragonFlyBSD #378

Merged
merged 2 commits into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Other Operating Systems
- `cachyos` (CachyOS)
- `debian` (Debian)
- `devuan` (Devuan)
`dragonflybsd` (DragonFlyBSD)
- `elementary` (elementary OS)
- `fedora` (Fedora)
- `freebsd` (FreeBSD)
Expand Down
24 changes: 23 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function pretty_name() {
archlinux) PRETTY_NAME="Arch Linux";;
arcolinux) PRETTY_NAME="Arco Linux";;
cachyos) PRETTY_NAME="CachyOS";;
dragonflybsd) PRETTY_NAME="DragonFlyBSD";;
elementary) PRETTY_NAME="elementary OS";;
freebsd) PRETTY_NAME="FreeBSD";;
garuda) PRETTY_NAME="Garuda Linux";;
Expand Down Expand Up @@ -170,6 +171,7 @@ function os_support() {
cachyos \
debian \
devuan \
dragonflybsd \
elementary \
fedora \
freebsd \
Expand Down Expand Up @@ -279,6 +281,10 @@ function releases_devuan() {
chimaera
}

function releases_dragonflybsd() {
echo 6.2.1
}

function releases_elementary() {
echo 6.1
}
Expand Down Expand Up @@ -695,6 +701,9 @@ function make_vm_config() {
IMAGE_FILE="${1}"
ISO_FILE="${2}"
case "${OS}" in
dragonflybsd)
GUEST="dragonflybsd"
IMAGE_TYPE="iso";;
freebsd|ghostbsd)
GUEST="freebsd"
IMAGE_TYPE="iso";;
Expand Down Expand Up @@ -741,7 +750,7 @@ EOF
# OS specific tweaks
case ${OS} in
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)
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
Expand Down Expand Up @@ -919,6 +928,19 @@ function get_devuan() {
make_vm_config "${ISO}"
}

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() {
local ISO=""
local ISOTAG="20211218-rc"
Expand Down