newvm: Adjust min memory for Fedora 41+

The Anaconda runtime is _way_ bigger in Fedora 41, presumably
because of the new web UI.  Even though we use text-only automated
installs, we still need enough space for the whole thing to fit in RAM.
unifi-restore
Dustin 2025-07-28 18:14:02 -05:00
parent 0ef65e4e5d
commit 4804b1357b
1 changed files with 5 additions and 0 deletions

View File

@ -138,6 +138,11 @@ if [ -z "${LIBVIRT_DEFAULT_URI}" ]; then
exit 1 exit 1
fi fi
if [ ${fedora} -gt 40 ] && [ ${memory} -lt 4096 ]; then
printf 'WARNING Fedora 41+ requires at least 4 GB memory to install\n' >&2
memory=4096
fi
if ${default_groups}; then if ${default_groups}; then
groups_xml="<group name=\"chrony\"/>${groups_xml}" groups_xml="<group name=\"chrony\"/>${groups_xml}"
groups_xml="<group name=\"collectd\"/>${groups_xml}" groups_xml="<group name=\"collectd\"/>${groups_xml}"