From 86ad25625f7fb6867e515cb09d1da40834f75a9a Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Thu, 7 Jul 2016 00:44:02 +0300 Subject: [PATCH] nixos stage-1: add custom pre failure dialog commands --- nixos/modules/system/boot/stage-1-init.sh | 2 ++ nixos/modules/system/boot/stage-1.nix | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index d4277ebd80c..7705dcb2d12 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -14,6 +14,8 @@ export LVM_SUPPRESS_FD_WARNINGS=true fail() { if [ -n "$panicOnFail" ]; then exit 1; fi + @preFailCommands@ + # If starting stage 2 failed, allow the user to repair the problem # in an interactive shell. cat <