mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_opensuse() to add create_vm() compatibility
This commit is contained in:
parent
294a0c0893
commit
3e5af6378a
1 changed files with 6 additions and 11 deletions
17
quickget
17
quickget
|
@ -1030,24 +1030,19 @@ function get_opensuse() {
|
||||||
|
|
||||||
if [ "${RELEASE}" == "tumbleweed" ]; then
|
if [ "${RELEASE}" == "tumbleweed" ]; then
|
||||||
ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
|
ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
|
||||||
URL="https://download.opensuse.org/tumbleweed/iso/${ISO}"
|
URL="https://download.opensuse.org/tumbleweed/iso"
|
||||||
HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1)
|
|
||||||
elif [ "${RELEASE}" == "microos" ]; then
|
elif [ "${RELEASE}" == "microos" ]; then
|
||||||
ISO="openSUSE-MicroOS-DVD-x86_64-Current.iso"
|
ISO="openSUSE-MicroOS-DVD-x86_64-Current.iso"
|
||||||
URL="https://download.opensuse.org/tumbleweed/iso/${ISO}"
|
URL="https://download.opensuse.org/tumbleweed/iso"
|
||||||
HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1)
|
|
||||||
elif [ "$RELEASE" == 15.0 ] || [ "$RELEASE" == 15.1 ]; then
|
elif [ "$RELEASE" == 15.0 ] || [ "$RELEASE" == 15.1 ]; then
|
||||||
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64.iso"
|
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64.iso"
|
||||||
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso/${ISO}"
|
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
||||||
HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1)
|
|
||||||
else
|
else
|
||||||
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
||||||
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso/${ISO}"
|
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
||||||
HASH=$(wget -q -O- "${URL}.sha256" | cut -d' ' -f1)
|
|
||||||
fi
|
fi
|
||||||
web_get "${URL}" "${VM_PATH}"
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
|
||||||
check_hash "${ISO}" "${HASH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_oraclelinux() {
|
function get_oraclelinux() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue