Refactor get_slackware() to add create_vm() compatibility
This commit is contained in:
parent
455b9e723c
commit
7ec0751591
20
quickget
20
quickget
@ -1100,24 +1100,10 @@ function get_rockylinux() {
|
|||||||
|
|
||||||
function get_slackware() {
|
function get_slackware() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO="slackware64-${RELEASE}-install-dvd.iso"
|
||||||
local URL=""
|
local URL="https://slackware.nl/slackware/slackware-iso/slackware64-${RELEASE}-iso"
|
||||||
|
|
||||||
case ${RELEASE} in
|
|
||||||
current)
|
|
||||||
URL="https://slackware.nl/slackware/slackware64-current-iso"
|
|
||||||
ISO="slackware64-current-install-dvd.iso"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
URL="https://mirrors.slackware.com/slackware/slackware-iso/slackware64-${RELEASE}-iso"
|
|
||||||
ISO="slackware64-${RELEASE}-install-dvd.iso"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
|
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
|
||||||
web_get "${URL}/${ISO}" "${VM_PATH}"
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
check_hash "${ISO}" "${HASH}"
|
|
||||||
make_vm_config "${ISO}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_solus() {
|
function get_solus() {
|
||||||
|
Loading…
Reference in New Issue
Block a user