flake.nix: fix gcroots in microvm-update-${name}-local
This commit is contained in:
parent
766f3a3810
commit
ff9e1ee7ad
|
@ -407,9 +407,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
|
||||
|
|
Loading…
Reference in New Issue