arch_install: Update plymouth section

This commit is contained in:
histalek 2023-04-07 10:24:01 +02:00
parent a195da75d9
commit 307a009faf
Signed by: histalek
SSH key fingerprint: SHA256:6a6N2Wzk73nwURUHC/ubbCyqdB6yfie0Jv/NGvRcsIE

View file

@ -394,16 +394,19 @@ zram-size = min(ram, 8192)
### (optional) Configure boot splash screen
Note: As of early April 2023 `plymouth` is now in the arch community repo.
The logic of the `plymouth-encrypt` hook has been merged to the `encrypt` hook.
Install `plymouth`
```console
$ sudo paru -Syua plymouth-git
$ sudo paru -Syu plymouth
```
Adapt mkinitcpio hooks. Add `plymouth plymouth-encrypt` **after** `base udev` and remove `encrypt`. Resulting in e.g.
Adapt mkinitcpio hooks. Add `plymouth` **after** `base udev`. Resulting in e.g.
```ini
HOOKS=(base udev plymouth plymouth-encrypt autodetect modconf block btrfs filesystems keyboard fsck)
HOOKS=(base udev plymouth autodetect modconf kms keyboard keymap consolefont block encrypt btrfs filesystems fsck)
```
Set theme for plymouth (this also regenerates the initramfs)
@ -412,6 +415,21 @@ Set theme for plymouth (this also regenerates the initramfs)
$ sudo plymouth-set-default-theme -R script
```
To get a smoother transition between plymouth and greetd place the following systemd dropin account
`/etc/systemd/system/display-manager.service.d/plymouth.conf`:
```
[Unit]
Conflicts=plymouth-quit.service
After=plymouth-quit.service rc-local.service plymouth-start.service systemd-user-sessions.service
OnFailure=plymouth-quit.service
[Service]
ExecStartPre=-/usr/bin/plymouth deactivate
ExecStartPost=-/usr/bin/sleep 30
ExecStartPost=-/usr/bin/plymouth quit --retain-splash
```
NOTE: After updating to Kernel 6.0 plymouth didn't show up on boot. I could still type my luks passwort and proceed,
but looking at a black screen was not particularly fun.
I solved this by configuring [early Kernel modesetting](https://wiki.archlinux.org/title/Kernel_mode_setting#Early_KMS_start).