From 76f11bcc93a9a865fd9fec393f0949cc013d77da Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 28 Mar 2024 21:36:48 +0000 Subject: [PATCH] liminix-rebuild: remove -f flag from reboot call now we have timeouts in service definitions, shouldn't need this any more --- pkgs/min-copy-closure/liminix-rebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/min-copy-closure/liminix-rebuild.sh b/pkgs/min-copy-closure/liminix-rebuild.sh index 970aa19..5dda92c 100755 --- a/pkgs/min-copy-closure/liminix-rebuild.sh +++ b/pkgs/min-copy-closure/liminix-rebuild.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash ssh_command=${SSH_COMMAND-ssh} + if [ "$1" = "--no-reboot" ] ; then reboot="true" shift @@ -20,7 +21,7 @@ if toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link); then echo systemConfiguration $toplevel min-copy-closure $target_host $toplevel $ssh_command $target_host $toplevel/bin/install - $ssh_command $target_host "sync; source /etc/profile; reboot -f" + $ssh_command $target_host "sync; source /etc/profile; reboot" else echo Rebuild failed fi