diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-07-07 00:44:02 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-07-12 22:22:29 +0300 |
commit | c69c76ca7efecba24aba555c2a03f933997d1fd5 (patch) | |
tree | 2087977cbda118df62f8055bd5631ed21da79305 /nixos/modules/system/boot/stage-1-init.sh | |
parent | a2d4235fe13292c7dce2e71963d0ed0f9c204436 (diff) | |
download | nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar.gz nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar.bz2 nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar.lz nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar.xz nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.tar.zst nixpkgs-c69c76ca7efecba24aba555c2a03f933997d1fd5.zip |
nixos stage-1: try to quit plymouth if started on failure
Diffstat (limited to 'nixos/modules/system/boot/stage-1-init.sh')
-rw-r--r-- | nixos/modules/system/boot/stage-1-init.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index d4277ebd80c..6b1bf0b3e02 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -14,6 +14,9 @@ export LVM_SUPPRESS_FD_WARNINGS=true fail() { if [ -n "$panicOnFail" ]; then exit 1; fi + # If we have a splash screen started, quit it. + command -v plymouth >/dev/null 2>&1 && plymouth quit + # If starting stage 2 failed, allow the user to repair the problem # in an interactive shell. cat <<EOF |