specific_tweaks and distro_specific

This commit is contained in:
zenobit 2025-03-01 07:10:53 +01:00
parent 3ecae69193
commit 8d53d06fe0
1 changed files with 3 additions and 9 deletions

View File

@ -598,11 +598,8 @@ EOF
fi
# OS specific tweaks
. "actions/${OS}"
if [ ! "specific_tweaks" 2>/dev/null ]; then
echo $"#TODO: Nothing special"
fi
specific_tweaks || echo $"#TODO: Nothing special"
#. "actions/${OS}"
#specific_tweaks 2>/dev/null
if [ "${OS}" == "ubuntu" ] && [[ ${RELEASE} == *"daily"* ]]; then
# Minimum to install lobster testing is 18GB but 32GB are allocated for headroom
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
@ -659,12 +656,9 @@ function create_vm() {
if [ -n "${HASH}" ]; then
check_hash "${ISO}" "${HASH}"
fi
# shellcheck disable=SC2076
. "actions/${OS}"
if [ ! "distro_specific" 2>/dev/null ]; then
echo $"#TODO: Nothing special"
fi
"distro_specific" 2>/dev/null
make_vm_config "${ISO}"
}