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" HOMEPAGE="https://easyos.org"
DESCRIPTION="Experimental distribution designed from scratch to support containers" DESCRIPTION="Experimental distribution designed from scratch to support containers"
CREDENTIALS="-" CREDENTIALS="-"
IMAGE_TYPE="img"
function releases_() { function releases_() {
local ALL_RELEASES="" local ALL_RELEASES=""
@ -33,3 +34,10 @@ function get_() {
done done
echo "${URL}/${ISO} ${HASH}" 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) custom)
GUEST="${CUSTOM_OS}" GUEST="${CUSTOM_OS}"
IMAGE_TYPE="${CUSTOM_IMAGE_TYPE}";; IMAGE_TYPE="${CUSTOM_IMAGE_TYPE}";;
easyos)
GUEST="linux"
IMAGE_TYPE="img";;
netbsd) netbsd)
GUEST="netbsd" GUEST="netbsd"
IMAGE_TYPE="iso";; IMAGE_TYPE="iso";;
@ -684,11 +681,6 @@ function create_vm() {
# shellcheck disable=SC2076 # shellcheck disable=SC2076
case "${OS}" in 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 #TODO
redox-os) redox-os)
if [[ ${ISO} =~ ".zst" ]]; then if [[ ${ISO} =~ ".zst" ]]; then