Refactor get_netboot() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:49:11 +00:00
parent 512aa14fe2
commit c928d6caee
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 4 deletions

View File

@ -994,11 +994,8 @@ function get_netboot() {
local ISO="netboot.xyz.iso"
local HASH=""
local URL="https://boot.netboot.xyz/ipxe"
HASH=$(wget -q -O- "${URL}/netboot.xyz-sha256-checksums.txt" | grep "${ISO}" | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
echo "${URL}/${ISO} ${HASH}"
}
function get_netbsd() {