From 3d69653d6b698928f225418e4a5e1b4f621b4dbe Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Mon, 18 Jul 2016 13:43:38 +0300 Subject: plymouth service: stop splash screen before a failure prompt --- nixos/modules/system/boot/plymouth.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/system/boot/plymouth.nix b/nixos/modules/system/boot/plymouth.nix index 0552338bd2a5..60a587af8e9f 100644 --- a/nixos/modules/system/boot/plymouth.nix +++ b/nixos/modules/system/boot/plymouth.nix @@ -129,6 +129,11 @@ in plymouth update-root-fs --new-root-dir="$targetRoot" ''; + # `mkBefore` to ensure that any custom prompts would be visible. + boot.initrd.preFailCommands = mkBefore '' + plymouth quit --wait + ''; + }; } -- cgit 1.4.1