Move config to..

This commit is contained in:
zenobit 2025-02-18 03:37:20 +01:00
parent 9c53243e14
commit 27276a6db1
2 changed files with 8 additions and 8 deletions

View File

@ -5,6 +5,7 @@ BASEDOF="-"
HOMEPAGE="https://easyos.org"
DESCRIPTION="Experimental distribution designed from scratch to support containers"
CREDENTIALS="-"
IMAGE_TYPE="img"
function releases_() {
local ALL_RELEASES=""
@ -33,3 +34,10 @@ function get_() {
done
echo "${URL}/${ISO} ${HASH}"
}
function distro_specific() {
if [[ ${ISO} = *".img"* ]]; then
${QEMU_IMG} convert -f raw -O qcow2 "${VM_PATH}/${ISO}" "${VM_PATH}/disk.qcow2"
ISO="${ISO/.img/}"
fi
}

View File

@ -573,9 +573,6 @@ function make_vm_config() {
custom)
GUEST="${CUSTOM_OS}"
IMAGE_TYPE="${CUSTOM_IMAGE_TYPE}";;
easyos)
GUEST="linux"
IMAGE_TYPE="img";;
netbsd)
GUEST="netbsd"
IMAGE_TYPE="iso";;
@ -684,11 +681,6 @@ function create_vm() {
# shellcheck disable=SC2076
case "${OS}" in
easyos)
if [[ ${ISO} = *".img"* ]]; then
${QEMU_IMG} convert -f raw -O qcow2 "${VM_PATH}/${ISO}" "${VM_PATH}/disk.qcow2"
ISO="${ISO/.img/}"
fi;;
#TODO
redox-os)
if [[ ${ISO} =~ ".zst" ]]; then