Adding Configuration Workarounds for Ubuntu Server

Ubuntu Server (the live server versions) require minimum disk sizes for LVM and 22.04+ won't boot / reboot successfully without TPM.
This commit is contained in:
funk-on-code 2022-09-28 07:04:29 +00:00 committed by GitHub
parent 7897974b74
commit 80c668cf1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -780,6 +780,15 @@ EOF
echo "disk_size=\"2G\"" >> "${CONF_FILE}"
echo "ram=\"128M\"" >> "${CONF_FILE}"
;;
ubuntuserver)
# 22.04+ fails on LVM build if disk size is < 10G
# 22.04.1 fails on auto-install if TPM is disabled
echo "disk_size=\"10G\"" >> "${CONF_FILE}"
echo "ram=\"4G\"" >> "${CONF_FILE}"
if [[ "${RELEASE}" == *"22.04"* ]]; then
echo "tpm=\"on\"" >> "${CONF_FILE}"
fi
;;
zorin)
case ${EDITION} in
education64|edulite64)