added openbsd 7 support (#129)

Co-authored-by: Fabian Schmidt <fabian85@protonmail.com>
pull/140/head
Fabian Schmidt 3 years ago committed by GitHub
parent 78b9a3f7f2
commit 94ecb1b3ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      quickemu
  2. 33
      quickget

@ -388,7 +388,7 @@ function vm_boot() {
# Make any OS specific adjustments # Make any OS specific adjustments
case ${guest_os} in case ${guest_os} in
freebsd|linux) freebsd|linux|openbsd)
CPU="-cpu host,kvm=on" CPU="-cpu host,kvm=on"
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then
CPU="${CPU},topoext" CPU="${CPU},topoext"
@ -396,6 +396,9 @@ function vm_boot() {
if [ "${guest_os}" == "freebsd" ]; then if [ "${guest_os}" == "freebsd" ]; then
MOUSE="usb-mouse" MOUSE="usb-mouse"
fi fi
if [ "${guest_os}" == "openbsd" ]; then
OUTPUT="gtk"
fi
if [ -z "${disk_size}" ]; then if [ -z "${disk_size}" ]; then
disk_size="16G" disk_size="16G"
fi fi

@ -109,6 +109,7 @@ function os_support() {
linuxmint-xfce \ linuxmint-xfce \
lubuntu \ lubuntu \
macos \ macos \
openbsd \
opensuse \ opensuse \
popos \ popos \
ubuntu \ ubuntu \
@ -139,6 +140,10 @@ function releases_linuxmint(){
echo 20.2 echo 20.2
} }
function releases_openbsd(){
echo 7_0
}
function releases_opensuse(){ function releases_opensuse(){
echo 15.0 \ echo 15.0 \
15.1 \ 15.1 \
@ -509,6 +514,9 @@ function make_vm_config() {
elif [[ "${OS}" == *"linuxmint"* ]]; then elif [[ "${OS}" == *"linuxmint"* ]]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
elif [[ "${OS}" == "openbsd" ]]; then
GUEST="openbsd"
IMAGE_TYPE="iso"
elif [ "${OS}" == "opensuse" ]; then elif [ "${OS}" == "opensuse" ]; then
GUEST="linux" GUEST="linux"
IMAGE_TYPE="iso" IMAGE_TYPE="iso"
@ -611,6 +619,29 @@ function get_linuxmint() {
make_vm_config "${ISO}" make_vm_config "${ISO}"
} }
function get_openbsd() {
local URL=""
local DL_BASE="https://cdn.openbsd.org/pub/OpenBSD/7.0/amd64/"
local VERSION=""
case ${RELEASE} in
7_0) VERSION=${RELEASE//_/};;
*)
echo "ERROR! OpenBSD ${RELEASE} is not a supported release."
releases_openbsd
exit 1
;;
esac
URL="${DL_BASE}/install${VERSION}.iso"
ISO="install${VERSION}.iso"
make_vm_dir
web_get ${URL} ${VM_PATH}
make_vm_config ${ISO}
start_vm_info
}
function get_opensuse() { function get_opensuse() {
local ISO="" local ISO=""
local RELEASES="" local RELEASES=""
@ -902,6 +933,8 @@ else
releases_linuxmint releases_linuxmint
elif [ "${OS}" == "opensuse" ]; then elif [ "${OS}" == "opensuse" ]; then
releases_opensuse releases_opensuse
elif [ "${OS}" == "openbsd" ]; then
releases_openbsd
elif [ "${OS}" == "macos" ]; then elif [ "${OS}" == "macos" ]; then
releases_macos releases_macos
elif [ "${OS}" == "popos" ]; then elif [ "${OS}" == "popos" ]; then

Loading…
Cancel
Save