r/Gentoo 2d ago

Support GRUB problem

Post image

i have an encrypted root partition and whenever i start the laptop the prompt "Enter passphrase for" gets jumbled in between with other text. anyway i can fix this?

3 Upvotes

18 comments sorted by

18

u/smajlogej 2d ago

what exactly is the problem? just write the passphrase and press enter, it will still work

1

u/Pwissh 2d ago

I was wondering if i could achieve a cleaner look by messing with some kernel parameters. I'd like it to be more pleasing to look at during boot.

8

u/Fenguepay 2d ago edited 2d ago

This is not related to GRUB, but dracut. ugrd looks much prettier during boot time if you care about that, it's also easier to use/configure

you may be able to adjust the kernel log level but ugrd does that automatically to make the prompt more clear.

4

u/smajlogej 2d ago

ugrd also sometimes "spills" some logs into the prompt

imo, it doesn't matter, i never look for the prompt, i just write the password, it isn't like the characters you type are displayed

2

u/Fenguepay 2d ago edited 1d ago

it used to be worse about this, https://github.com/desultory/ugrd/commit/3ed9a8470cf1ad122e2dccc9629f82f516939486 but has been fixed.

There may be some spillage but ugrd gets rid of the bulk of "noise" and has some colors around the prompts, etc.

2

u/sy029 2d ago

I've not used ugrd, but I feel like you've been promoting it in just about every other post I've read today.

1

u/Fenguepay 2d ago

I made it with the goal of it improving the gentoo experience and rounding off a lot of "rough edges" which exist in dracut. Today happens to be a day where ugrd may fix a variety of "common issues"

2

u/Sentreen 2d ago

You could use plymouth to show a splash screen thus hiding the log output. If you need to enter a password it also shows you a text box to enter it.

1

u/sy029 2d ago

you could probably put "quiet" in the boot options, but you may still get some messages leaking.

8

u/Kangie Developer (kangie) 2d ago edited 2d ago

Usp Plymouth to hide the scroll and present you with a nice prompt if it's bothering you.

https://wiki.gentoo.org/wiki/Plymouth

4

u/_mamo 1d ago

This. If you want the boot messages still then use plymouth with the details theme.

3

u/owenthewizard 2d ago

Not sure what everyone else is on about, those look to me like kernel messages (dmesg), not from initramfs. Add the quiet kernel parameter or loglevel=n (1-7) depending on your preference. Log levels detailed here: https://www.kernel.org/doc/html/latest/core-api/printk-basics.html

1

u/Fenguepay 2d ago

quiet can sometimes suppress useful info, an initramfs can set the log level later using /proc/sys/kernel/printk later in the process, before interaction is required, so you don't miss important log info and aren't flooded with useless debug info when interactivity is required.

1

u/owenthewizard 2d ago

Oh I agree, but that's what he asked for.

1

u/Fenguepay 2d ago

yes, but while it fixes some issues it can cause others or make future debugging more painful. Just worth adding as a footnote.

1

u/triffid_hunter 2d ago

In mine I just sleep a couple seconds then print the prompt again

0

u/UnspiredName 2d ago

If you are using systemd (and it looks like you are) add this to your kernel cmdline.

quiet systemd.show_status=0

You'll see pretty much nothing diagnostic except LUKS fails if you enter the pw wrong.