move the calamares-using projects into a global with a meaningful name

This commit is contained in:
michael.hudson@canonical.com 2026-02-13 07:11:08 +13:00
parent edc2fa0fc5
commit 5c6a3fba53
No known key found for this signature in database
GPG Key ID: 80E627A0AB757E23

View File

@ -7,6 +7,9 @@ from .uefi import UEFIBootConfigurator
from .base import default_kernel_params
CALAMARES_PROJECTS = ["kubuntu", "lubuntu"]
class AMD64BootConfigurator(UEFIBootConfigurator):
"""Boot setup for AMD64/x86_64 architecture."""
@ -133,7 +136,7 @@ class AMD64BootConfigurator(UEFIBootConfigurator):
)
# Calamares-based projects get OEM mode
if self.project in ["lubuntu", "kubuntu"]:
if self.project in CALAMARES_PROJECTS:
with grub_cfg.open("a") as f:
f.write(
f"""menuentry "OEM install (for manufacturers)" {{