Skip to content

Install ​

NixOS ​

With the lys flake as an input (NixOS), import its module:

nix
{
  imports = [lys.nixosModules.lys-splash];
  boot.lys-splash.enable = true;
}
OptionTypeDefaultEffect
boot.lys-splash.enableboolfalseInstalls the binary, theme and units into the systemd initrd and the system, the shutdown hook into the system, and adds splash to the kernel command line
boot.lys-splash.packagepackagethe flake's lys-splashThe package to run
boot.lys-splash.themeYAML attrs{}The fields of theme.yaml, written to /etc/lys-splash/theme.yaml in the initrd and the system

It cannot be combined with boot.plymouth.enable (an assertion fails). It requires the systemd initrd: set boot.initrd.systemd.enable = true where that is not the default.

Ubuntu and Debian ​

Build the package's compat output with Nix (on any machine) and copy it under /usr:

sh
nix build github:stubbedev/lys#lys-splash.compat
sudo apt-get remove plymouth
sudo cp -dRf result-compat/. /usr/
sudo systemctl enable lys-splash-start.service lys-splash-quit.service \
  lys-splash-quit-wait.service lys-splash-read-write.service \
  lys-splash-ask-password.path lys-splash-reboot.service \
  lys-splash-poweroff.service lys-splash-halt.service lys-splash-kexec.service
sudo update-initramfs -u
Path in compatContents
bin/lys-splashThe binary
bin/plymouth, sbin/plymouthdSymlinks to it that select the role
lib/systemd/system/The units, with /usr paths
lib/systemd/system-shutdown/lys-splash-shutdown-hookA symlink to the binary that systemd-shutdown runs just before the reset, so a shutdown or reboot splash fades its status group out and ends on the logo
share/initramfs-tools/The hook (copies the binary, the links and /etc/lys-splash/theme.yaml into the image) and the init-premount, init-bottom and panic scripts

cryptsetup's initramfs scripts call plymouth and so ask through the splash.

Kernel command line ​

The units and the initramfs-tools script apply the same rule: the splash runs when one of the "on" parameters is present and none of the "off" ones, in any order.

ParameterEffect
splash, splash=silent, rhgbOn; one is required
nosplash, splash=verbose, plymouth.enable=0Off

When off, no lys-splash unit runs during boot or shutdown, and systemd's console agent asks for passwords. The splash units also do not run in a container. The NixOS module adds splash; on other systems add it to the bootloader's command line.

Check that it works ​

sh
sudo lys-splash --ping
journalctl -b -u 'lys-splash*'

--ping exits 3 once the boot has finished, as no splash is running. A splash started by a unit logs to the journal. One started by the initramfs-tools script logs to /dev/kmsg: read it with dmesg or journalctl -b -t lys-splash. The kernel rate-limits /dev/kmsg; boot with printk.devkmsg=on to see all --debug output.

Released under the MIT License.