cornelinux / yubikey-luks

Two factor authentication for harddisk encryption
615 stars 58 forks source link

[low] Multiline WELCOME_TEXT #86

Closed DClabaut closed 1 year ago

DClabaut commented 1 year ago

Per the documentation, modifying the WELCOME_TEXT variable in /etc/ykluks.cfg allows users to personalize the prompt.

When booting in CLI mode (GRUB_CMDLINE_LINUX_DEFAULT="" in /etc/default/grub), newlines (\n) in WELCOME_TEXT are recognized and the text is written over multiple lines.

This does not seem to work in GUI boot (GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"), as the newline appears as a litteral \n. Is there a way to get multiline text this way?

Thank you

Edit: Adding a litteral newline in the variable works

WELCOME_TEXT="First Line
Second Line"

But there seems to be a maximum length of the text for the GUI boot. If the WELCOME_TEXT is too long then the GUI boot just goes "Maximum number of tries reached" without giving the user a chance to do anything.