Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions archinstall/lib/bootloader/bootloader_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,34 @@ async def _select_bootloader(self, preset: Bootloader | None) -> Bootloader | No
return bootloader

async def _select_plymouth(self, preset: PlymouthTheme | None) -> PlymouthTheme | None:
# Plymouth is purely cosmetic and a frequent source of boot breakage
# (notably with the NVIDIA driver and disk encryption), so confirm before
# enabling it. When it is already enabled the user is only changing the
# theme, so the warning is skipped.
if preset is None:
prompt = (
'[ansi_bright_yellow]'
+ tr('Plymouth adds a cosmetic boot splash but can cause boot problems on some setups:')
+ '\n\n • '
+ tr('black screen with the NVIDIA driver')
+ '\n • '
+ tr('hidden password prompt with disk encryption (LUKS)')
+ '\n\n'
+ tr('Would you like to enable it?')
+ '[/]\n'
)

result = await Confirmation(header=prompt, allow_skip=True, preset=False).show()

match result.type_:
case ResultType.Skip:
return preset
case ResultType.Selection:
if not result.get_value():
return preset
case ResultType.Reset:
raise ValueError('Unhandled result type')

return await select_plymouth_theme(preset)

async def _select_uki(self, preset: bool) -> bool:
Expand Down
14 changes: 14 additions & 0 deletions archinstall/locales/base.pot
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,20 @@ msgstr ""
msgid "Will install to custom location with NVRAM entry"
msgstr ""

msgid ""
"Plymouth adds a cosmetic boot splash but can cause boot problems on some "
"setups:"
msgstr ""

msgid "black screen with the NVIDIA driver"
msgstr ""

msgid "hidden password prompt with disk encryption (LUKS)"
msgstr ""

msgid "Would you like to enable it?"
msgstr ""

msgid "Would you like to use unified kernel images?"
msgstr ""

Expand Down