flake.nix: fix gcroots in microvm-update-${name}

This commit is contained in:
Astro 2022-09-26 01:06:19 +02:00
parent 57a93e64ea
commit 7eb79ae6f2
1 changed files with 3 additions and 3 deletions

View File

@ -388,9 +388,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