mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add OracleLinux Support
No checksum checking yet
This commit is contained in:
parent
4080bf8048
commit
6245b654dc
1 changed files with 40 additions and 0 deletions
40
quickget
40
quickget
|
@ -49,6 +49,7 @@ function pretty_name() {
|
||||||
macos) PRETTY_NAME="macOS";;
|
macos) PRETTY_NAME="macOS";;
|
||||||
openbsd) PRETTY_NAME="OpenBSD";;
|
openbsd) PRETTY_NAME="OpenBSD";;
|
||||||
opensuse) PRETTY_NAME="openSUSE";;
|
opensuse) PRETTY_NAME="openSUSE";;
|
||||||
|
oraclelinux) PRETTY_NAME="Oracle Linux";;
|
||||||
popos) PRETTY_NAME="Pop!_OS";;
|
popos) PRETTY_NAME="Pop!_OS";;
|
||||||
regolith) PRETTY_NAME="Regolith Linux";;
|
regolith) PRETTY_NAME="Regolith Linux";;
|
||||||
rockylinux) PRETTY_NAME="Rocky Linux";;
|
rockylinux) PRETTY_NAME="Rocky Linux";;
|
||||||
|
@ -168,6 +169,7 @@ function os_support() {
|
||||||
macos \
|
macos \
|
||||||
openbsd \
|
openbsd \
|
||||||
opensuse \
|
opensuse \
|
||||||
|
oraclelinux \
|
||||||
popos \
|
popos \
|
||||||
regolith \
|
regolith \
|
||||||
rockylinux \
|
rockylinux \
|
||||||
|
@ -262,6 +264,14 @@ function releases_opensuse(){
|
||||||
tumbleweed
|
tumbleweed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function releases_oraclelinux() {
|
||||||
|
echo 8.4 \
|
||||||
|
8.3 \
|
||||||
|
8.2 \
|
||||||
|
7.9 \
|
||||||
|
7.8
|
||||||
|
}
|
||||||
|
|
||||||
function releases_macos() {
|
function releases_macos() {
|
||||||
echo high-sierra \
|
echo high-sierra \
|
||||||
mojave \
|
mojave \
|
||||||
|
@ -695,6 +705,9 @@ function make_vm_config() {
|
||||||
elif [ "${OS}" == "opensuse" ]; then
|
elif [ "${OS}" == "opensuse" ]; then
|
||||||
GUEST="linux"
|
GUEST="linux"
|
||||||
IMAGE_TYPE="iso"
|
IMAGE_TYPE="iso"
|
||||||
|
elif [ "${OS}" == "oraclelinux" ]; then
|
||||||
|
GUEST="linux"
|
||||||
|
IMAGE_TYPE="iso"
|
||||||
elif [ "${OS}" == "popos" ]; then
|
elif [ "${OS}" == "popos" ]; then
|
||||||
GUEST="linux"
|
GUEST="linux"
|
||||||
IMAGE_TYPE="iso"
|
IMAGE_TYPE="iso"
|
||||||
|
@ -1024,6 +1037,29 @@ function get_opensuse() {
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_oraclelinux() {
|
||||||
|
local HASH=""
|
||||||
|
local ISO=""
|
||||||
|
local URL=""
|
||||||
|
|
||||||
|
local arch="x86_64"
|
||||||
|
|
||||||
|
local majorver=${RELEASE,1,1}
|
||||||
|
local minorver=${RELEASE,3,1}
|
||||||
|
|
||||||
|
local baseurl="https://yum.oracle.com/ISOS/OracleLinux/OL${majorver}/u${minorver}/${arch}/"
|
||||||
|
# local baseurl="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/${arch}"
|
||||||
|
|
||||||
|
validate_release "releases_oraclelinux"
|
||||||
|
ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso"
|
||||||
|
URL="${baseurl}/${ISO}"
|
||||||
|
# HASH=$(wget -q -O- "${baseurl}/CHECKSUM" | grep "SHA256 (${ISO})" | grep -E -i -w -o '[0-9a-z]{64}')
|
||||||
|
|
||||||
|
web_get "${URL}" "${VM_PATH}"
|
||||||
|
# check_hash "${ISO}" "${HASH}"
|
||||||
|
make_vm_config "${ISO}"
|
||||||
|
}
|
||||||
|
|
||||||
function get_macos() {
|
function get_macos() {
|
||||||
local BOARD_ID=""
|
local BOARD_ID=""
|
||||||
local CWD=""
|
local CWD=""
|
||||||
|
@ -1361,6 +1397,8 @@ if [ -n "${2}" ]; then
|
||||||
get_openbsd
|
get_openbsd
|
||||||
elif [ "${OS}" == "opensuse" ]; then
|
elif [ "${OS}" == "opensuse" ]; then
|
||||||
get_opensuse
|
get_opensuse
|
||||||
|
elif [ "${OS}" == "oraclelinux" ]; then
|
||||||
|
get_oraclelinux
|
||||||
elif [ "${OS}" == "popos" ]; then
|
elif [ "${OS}" == "popos" ]; then
|
||||||
if [ -n "${3}" ]; then
|
if [ -n "${3}" ]; then
|
||||||
DRIVER="${3}"
|
DRIVER="${3}"
|
||||||
|
@ -1442,6 +1480,8 @@ else
|
||||||
releases_nixos
|
releases_nixos
|
||||||
elif [ "${OS}" == "opensuse" ]; then
|
elif [ "${OS}" == "opensuse" ]; then
|
||||||
releases_opensuse
|
releases_opensuse
|
||||||
|
elif [ "${OS}" == "oraclelinux" ]; then
|
||||||
|
releases_oraclelinux
|
||||||
elif [ "${OS}" == "openbsd" ]; then
|
elif [ "${OS}" == "openbsd" ]; then
|
||||||
releases_openbsd
|
releases_openbsd
|
||||||
elif [ "${OS}" == "macos" ]; then
|
elif [ "${OS}" == "macos" ]; then
|
||||||
|
|
Loading…
Reference in a new issue