Remove nom when using the reboot option
For some reason nmon hangs endlessly and doesn't let me enter the password to reboot the system.
This commit is contained in:
parent
b02092e97a
commit
b13bd21de2
|
@ -35,7 +35,7 @@ for host in "${hosts[@]}"; do
|
|||
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
|
||||
else
|
||||
echo "$fqdn with reboot"
|
||||
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
|
||||
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
|
||||
ssh -i $rsa_key $fqdn 'sudo reboot'
|
||||
fi
|
||||
echo
|
||||
|
|
|
@ -14,7 +14,7 @@ while getopts ":r" option; do
|
|||
host=$2
|
||||
fqdn="$host.2li.local"
|
||||
echo "$fqdn with reboot"
|
||||
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
|
||||
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
|
||||
ssh -i $rsa_key $fqdn 'sudo reboot'
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue