Move config to..
This commit is contained in:
parent
9b1f64609e
commit
eaacb71537
|
|
@ -5,6 +5,7 @@ BASEDOF="FreeBSD"
|
|||
HOMEPAGE="https://www.dragonflybsd.org"
|
||||
DESCRIPTION="Provides an opportunity for the BSD base to grow in an entirely different direction from the one taken in the FreeBSD, NetBSD, and OpenBSD series"
|
||||
CREDENTIALS="-"
|
||||
GUEST="dragonflybsd"
|
||||
|
||||
function releases_() {
|
||||
# If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0
|
||||
|
|
@ -20,3 +21,16 @@ function get_() {
|
|||
HASH=$(web_pipe "${URL}/md5.txt" | grep "(${ISO})" | cut -d' ' -f4)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function distro_specific() {
|
||||
# Could be other OS iso files compressed with bzip2 or gzip
|
||||
# but for now we'll keep this to know cases
|
||||
if [[ ${ISO} = *".bz2"* ]]; then
|
||||
bzip2 -d "${VM_PATH}/${ISO}"
|
||||
ISO="${ISO/.bz2/}"
|
||||
fi
|
||||
}
|
||||
|
||||
function specific_tweaks() {
|
||||
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
||||
}
|
||||
|
|
|
|||
10
quickget
10
quickget
|
|
@ -573,9 +573,6 @@ function make_vm_config() {
|
|||
custom)
|
||||
GUEST="${CUSTOM_OS}"
|
||||
IMAGE_TYPE="${CUSTOM_IMAGE_TYPE}";;
|
||||
dragonflybsd)
|
||||
GUEST="dragonflybsd"
|
||||
IMAGE_TYPE="iso";;
|
||||
easyos)
|
||||
GUEST="linux"
|
||||
IMAGE_TYPE="img";;
|
||||
|
|
@ -780,13 +777,6 @@ function create_vm() {
|
|||
|
||||
# shellcheck disable=SC2076
|
||||
case "${OS}" in
|
||||
dragonflybsd)
|
||||
# Could be other OS iso files compressed with bzip2 or gzip
|
||||
# but for now we'll keep this to know cases
|
||||
if [[ ${ISO} = *".bz2"* ]]; then
|
||||
bzip2 -d "${VM_PATH}/${ISO}"
|
||||
ISO="${ISO/.bz2/}"
|
||||
fi;;
|
||||
easyos)
|
||||
if [[ ${ISO} = *".img"* ]]; then
|
||||
${QEMU_IMG} convert -f raw -O qcow2 "${VM_PATH}/${ISO}" "${VM_PATH}/disk.qcow2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue