From f4644275204ff67fc60957be96c02cc81212592b Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 14 Sep 2022 00:19:59 +0200 Subject: [PATCH] flake.nix: let microvm-update-** properly create gcroots symlinks --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 0c8e5a02..9fe1c61c 100644 --- a/flake.nix +++ b/flake.nix @@ -323,9 +323,9 @@ echo '${selfRef}' > flake [ -e old ] && nix store diff-closures ./old ./current - ln -sfT $PWD/current /nix/var/nix/gcroots/microvm/${name} - ln -sfT $PWD/booted /nix/var/nix/gcroots/microvm/booted-${name} - ln -sfT $PWD/old /nix/var/nix/gcroots/microvm/old-${name} + ln -sfT `pwd`/current /nix/var/nix/gcroots/microvm/${name} + ln -sfT `pwd`/booted /nix/var/nix/gcroots/microvm/booted-${name} + ln -sfT `pwd`/old /nix/var/nix/gcroots/microvm/old-${name} systemctl restart microvm@${name}.service END @@ -348,6 +348,9 @@ echo '${selfRef}' > flake [ -e old ] && nix store diff-closures ./old ./current + ln -sfT `pwd`/current /nix/var/nix/gcroots/microvm/${name} + ln -sfT `pwd`/booted /nix/var/nix/gcroots/microvm/booted-${name} + ln -sfT `pwd`/old /nix/var/nix/gcroots/microvm/old-${name} systemctl restart microvm@${name}.service END