add hook to run maintenance mode instead of rebooting

This commit is contained in:
Daniel Barlow
2023-11-22 00:05:55 +00:00
parent bab6d346a8
commit 62c788eb86
2 changed files with 24 additions and 14 deletions

View File

@@ -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 = {