mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-17 23:43:29 +00:00
move the calamares-using projects into a global with a meaningful name
This commit is contained in:
parent
edc2fa0fc5
commit
5c6a3fba53
@ -7,6 +7,9 @@ from .uefi import UEFIBootConfigurator
|
|||||||
from .base import default_kernel_params
|
from .base import default_kernel_params
|
||||||
|
|
||||||
|
|
||||||
|
CALAMARES_PROJECTS = ["kubuntu", "lubuntu"]
|
||||||
|
|
||||||
|
|
||||||
class AMD64BootConfigurator(UEFIBootConfigurator):
|
class AMD64BootConfigurator(UEFIBootConfigurator):
|
||||||
"""Boot setup for AMD64/x86_64 architecture."""
|
"""Boot setup for AMD64/x86_64 architecture."""
|
||||||
|
|
||||||
@ -133,7 +136,7 @@ class AMD64BootConfigurator(UEFIBootConfigurator):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Calamares-based projects get OEM mode
|
# 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:
|
with grub_cfg.open("a") as f:
|
||||||
f.write(
|
f.write(
|
||||||
f"""menuentry "OEM install (for manufacturers)" {{
|
f"""menuentry "OEM install (for manufacturers)" {{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user