Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code isn't displayed in plymouth on Fedora 40 #110

Open
teackot opened this issue Jul 1, 2024 · 2 comments
Open

Code isn't displayed in plymouth on Fedora 40 #110

teackot opened this issue Jul 1, 2024 · 2 comments

Comments

@teackot
Copy link

teackot commented Jul 1, 2024

The code isn't shown in plymouth on boot on Fedora 40. I couldn't find any relevant info in the logs

How to reproduce

Build and install the project

./bootstrap
./configure
make -j$(nproc)
make -j$(nproc) check
sudo make install

Regenerate initramfs

sudo dracut --regenerate-all --force

Setup totp

sudo tpm2-totp -P - init
<password><Ctrl-D>

Verify that the code is correct

sudo tpm2-totp -t show

Reboot

@teackot
Copy link
Author

teackot commented Jul 2, 2024

After a closer inspection:

  1. I should've activated the tpm2-totp dracut module. Now I can see the codes, but only in the console if I press <Esc> in plymouth.
  2. This project uses the label.so file from plymouth-plugin-label. However, it seems to have been split into two files in plymouth 23.356.9: label-freetype.so and label-pango.so (see this commit). Symlinking label-pango.so to label.so solves the problem.

There is also a redundant slash in /lib/dracut/modules.d/70tpm2-totp/module-setup.sh:

inst_library /usr/lib64/plymouth//label.so

@teackot teackot changed the title Doesn't work on Fedora 40 Code isn't displayed in plymouth on Fedora 40 Jul 4, 2024
@grazzolini
Copy link

So, plymouth is using label-freetype.so on their initcpio hooks. So, I think that symlinking label-pango.so to label.so isn't the right approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants