From a809c28ddef5baa03d9b5af502b62a015d969c8b Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 18 May 2023 22:43:08 +0100 Subject: [PATCH] liminix-rebuild source /etc/profile to get PATH for reboot --- pkgs/min-copy-closure/liminix-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/min-copy-closure/liminix-rebuild.sh b/pkgs/min-copy-closure/liminix-rebuild.sh index 01e5065..b53c835 100755 --- a/pkgs/min-copy-closure/liminix-rebuild.sh +++ b/pkgs/min-copy-closure/liminix-rebuild.sh @@ -12,4 +12,4 @@ fi toplevel=$(nix-build "$@" -A outputs.systemConfiguration --no-out-link) min-copy-closure $target_host $toplevel $ssh_command $target_host cp -v -fP $toplevel/bin/* /persist -$ssh_command $target_host "sync; reboot" +$ssh_command $target_host "sync; source /etc/profile; reboot"