Skip to content

Plymouth splash screen - #16763

Closed
abbradar wants to merge 9 commits into
NixOS:masterfrom
abbradar:plymouth
Closed

abbradar wants to merge 9 commits into
NixOS:masterfrom
abbradar:plymouth

Conversation

@abbradar

@abbradar abbradar commented Jul 6, 2016 •

Copy link
Copy Markdown
Member
Motivation for this change

Because we can and it looks nice. Enable with boot.plymouth.enable = true.

Things done
  • Tested using sandboxing
    (nix.useChroot on NixOS,
    or option build-use-chroot in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

TODO:
  • Test on various configurations. Notice that it's recommended to add your video driver module to boot.initrd.kernelModules -- for example i915 for Intel;
  • Make GDM smoothly appear after it (there is support but I haven't tried to enable it or test);
  • Test with LUKS (implemented password query but not tested, YubiKey too);
  • Better style (I've added our logo but haven't tweaked its size, colors etc.);
  • Test most likely broken emergency mode -- we patch out plymouth quit before it in our systemd;
  • Investigate if it's possible to show systemd service failures properly;
  • Fix stage-1 fail.
Implementation details:

This links various resources, including binary Plymouth plugins, to /etc. I've done this because we want to have trimmed resources package for including in initrd -- so in it not all plugins, themes etc are available.

@abbradar abbradar added 0.kind: enhancement Add something new or improve an existing system. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Jul 6, 2016
@mention-bot

Copy link
Copy Markdown

@abbradar, thanks for your PR! By analyzing the annotation information on this pull request, we identified @cillianderoiste, @vcunat and @nbp to be potential reviewers

@matthewbauer matthewbauer Jul 6, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does GDM need to be compiled with a plymouth flag as well? I wonder if this flag will cause issues if GDM isn't installed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it needs to. I haven't tried Plymouth with GDM yet -- it works with SDDM for me as is, so I guess it's OK.

@abbradar

abbradar commented Jul 6, 2016

Copy link
Copy Markdown
Member Author

I performed some testing and also gave up on requesting LUKS password via Plymouth for now. The problem is YubiKey, which I cannot test properly and don't want to break people' systems.

@abbradar

abbradar commented Jul 6, 2016

Copy link
Copy Markdown
Member Author

GDM doesn't work for me at all -- I guess it needs GNOME 3. Good news -- enabling Plymouth support in GDM doesn't add to its closure size. If there is someone with GNOME 3 who wants to try this out, please do!

@abbradar

abbradar commented Jul 7, 2016

Copy link
Copy Markdown
Member Author

Regarding style: I should admit that I'm notoriously bad at design, so I could use some help here with colors (--with--background-color, --with-background-start-color-stop, --with-background-end-color-stop -- each accepting HTML-like 0xabcdef colors) and maybe a different default logo. To test things you can run sudo plymouthd and then sudo plymouth start-splash from X11 -- it would create a GTK window. To stop -- sudo plymouth quit.

@abbradar abbradar mentioned this pull request Jul 7, 2016
4 of 7 tasks
@abbradar

abbradar commented Jul 7, 2016

Copy link
Copy Markdown
Member Author

#16788 gets systemd emergency support covered. We should wait for it to be merged first.

@abbradar

abbradar commented Jul 7, 2016

Copy link
Copy Markdown
Member Author

Also, many thanks to @aske for testing Plymouth with encryption!

@abbradar abbradar mentioned this pull request Jul 8, 2016
4 of 7 tasks
@abbradar
abbradar force-pushed the plymouth branch 2 times, most recently from 259f8ef to 1dd295c Compare July 8, 2016 17:20
@abbradar

abbradar commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

After more fiddling and playing with settings I think I've finished this work!

  • We now have an option to set console fonts and keymaps early (before LUKS passphrase entering). This is needed because Plymouth prevents doing this while it's running. Also may be a generally nice option.
  • Background color is now set to black.

It appears Plymouth reacts correctly to systemd unit status updates. I can't test GDM integration but don't have enough motivation to work on it further -- maybe I'll continue after a major GDM upgrade, which should be coming soon.

@abbradar abbradar changed the title [WIP] Plymouth splash screen Plymouth splash screen Jul 8, 2016
@matthewbauer

Copy link
Copy Markdown
Member

Looks good to me! Make sure to close #7400 when this gets merged.

@abbradar

abbradar commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

We should wait till staging hits master with needed fixes for systemd till we can merge this.

I have also splitted early consolefonts to #16801 -- turns out they are not always needed and can even make it worse (if you don't add display driver module to initrd).

@abbradar abbradar added 8.has: package (update) This PR updates a package to a newer version 8.has: module (new) This PR adds a module in `nixos/` labels Jul 13, 2016
@abbradar

Copy link
Copy Markdown
Member Author

Merged to staging in 1848bfc (I figured out why not merge there instead of waiting till needed patches hit master).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.kind: enhancement Add something new or improve an existing system. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (new) This PR adds a module in `nixos/` 8.has: package (update) This PR updates a package to a newer version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants