liminix-rebuild: remove -f flag from reboot call

now we have timeouts in service definitions, shouldn't need this
any more
This commit is contained in:
Daniel Barlow 2024-03-28 21:36:48 +00:00
parent b8a46fc05e
commit 76f11bcc93

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
ssh_command=${SSH_COMMAND-ssh} ssh_command=${SSH_COMMAND-ssh}
if [ "$1" = "--no-reboot" ] ; then if [ "$1" = "--no-reboot" ] ; then
reboot="true" reboot="true"
shift shift
@ -20,7 +21,7 @@ if toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link); then
echo systemConfiguration $toplevel echo systemConfiguration $toplevel
min-copy-closure $target_host $toplevel min-copy-closure $target_host $toplevel
$ssh_command $target_host $toplevel/bin/install $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 else
echo Rebuild failed echo Rebuild failed
fi fi