From 292a4c4d4664ca25662b37d92806da37178fffd2 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 17 May 2023 22:49:10 +0100 Subject: [PATCH] liminix-rebuild: put activate in /persist --- pkgs/min-copy-closure/liminix-rebuild.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/min-copy-closure/liminix-rebuild.sh b/pkgs/min-copy-closure/liminix-rebuild.sh index e1544fd..01e5065 100755 --- a/pkgs/min-copy-closure/liminix-rebuild.sh +++ b/pkgs/min-copy-closure/liminix-rebuild.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +ssh_command=${SSH_COMMAND-ssh} target_host=$1 shift @@ -10,5 +11,5 @@ fi toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link) min-copy-closure $target_host $toplevel -ssh $target_host cp -P $toplevel/bin/\* / -ssh $target_host reboot +$ssh_command $target_host cp -v -fP $toplevel/bin/* /persist +$ssh_command $target_host "sync; reboot"