Update Debian & Archlinux for "sensible" 2026 defaults

Both Debian 12 and 13 can boot with both TPM and Secureboot enabled, as can Archlinux 2026.01 and beyond, update the configurations to enable these.
This commit is contained in:
funk-on-code 2026-06-03 12:38:39 +10:00 committed by GitHub
parent 2d9f6c9458
commit a40c576036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -1652,6 +1652,10 @@ EOF
case ${OS} in
alma|centos-stream|endless|garuda|gentoo|kali|nixos|oraclelinux|popos|rockylinux)
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
archlinux)
echo "secureboot=\"on\"" >> "${CONF_FILE}"
echo "tpm=\"on\"" >> "${CONF_FILE}"
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
openindiana)
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
@ -1661,6 +1665,14 @@ EOF
echo "disk_size=\"64G\"" >> "${CONF_FILE}";;
dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tinycore)
echo "boot=\"legacy\"" >> "${CONF_FILE}";;
debian)
if [[ "${RELEASE}" == *"12"* ]]; then
echo "tpm=\"on\"" >> "${CONF_FILE}"
fi
if [[ "${RELEASE}" == *"13"* ]]; then
echo "tpm=\"on\"" >> "${CONF_FILE}"
fi
echo "secureboot=\"on\"" >> "${CONF_FILE}"
deepin)
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
echo "ram=\"4G\"" >> "${CONF_FILE}"