add hook to run maintenance mode instead of rebooting
This commit is contained in:
@@ -118,7 +118,13 @@ let
|
||||
mode = "0755";
|
||||
};
|
||||
finish = {
|
||||
file = quit "s6-svscan exited. Rebooting.";
|
||||
file = ''
|
||||
${openConsole}
|
||||
ifelse { test -x /run/maintenance/exec } { /run/maintenance/exec }
|
||||
foreground { echo "s6-svscan exited. Rebooting." }
|
||||
wait { }
|
||||
${s6-linux-init}/bin/s6-linux-init-hpr -fr
|
||||
'';
|
||||
mode = "0755";
|
||||
};
|
||||
SIGINT = {
|
||||
|
Reference in New Issue
Block a user