Move config to..

This commit is contained in:
zenobit 2025-02-18 03:28:52 +01:00
parent 7cf31e3212
commit f13ee6d74e
2 changed files with 16 additions and 15 deletions

View File

@ -5,6 +5,7 @@ BASEDOF="-"
HOMEPAGE="https://reactos.org"
DESCRIPTION="Imagine running your favorite Windows applications and drivers in an open-source environment you can trust"
CREDENTIALS="-"
GUEST="reactos"
function releases_() {
echo latest
@ -16,3 +17,18 @@ function get_() {
URL="$(web_redirect "https://sourceforge.net/projects/reactos/files/latest/download")"
echo "${URL} ${HASH}"
}
function distro_specific() {
if [[ ${ISO} = *".zip"* ]]; then
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
ISO="$(basename "${ISO}")"
fi
}
function specific_tweaks() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"12G\"" >> "${CONF_FILE}"
echo "ram=\"2048M\"" >> "${CONF_FILE}"
}

View File

@ -600,9 +600,6 @@ function make_vm_config() {
openindiana)
GUEST="solaris"
IMAGE_TYPE="iso";;
reactos)
GUEST="reactos"
IMAGE_TYPE="iso";;
truenas*)
GUEST="truenas"
IMAGE_TYPE="iso";;
@ -695,11 +692,6 @@ EOF
case ${EDITION} in
education64|edulite64) echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
esac;;
reactos)
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"12G\"" >> "${CONF_FILE}"
echo "ram=\"2048M\"" >> "${CONF_FILE}"
;;
macos)
echo "disk_size=\"128G\"" >> "${CONF_FILE}"
echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}"
@ -794,13 +786,6 @@ function create_vm() {
ISO="$(basename "${ISO}")"
fi
fi;;
reactos)
if [[ ${ISO} = *".zip"* ]]; then
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
ISO="$(basename "${ISO}")"
fi;;
#TODO
redox-os)
if [[ ${ISO} =~ ".zst" ]]; then