forked from c3d2/nix-config
flake.nix: let microvm-update-${name} create gcroots symlinks
This commit is contained in:
parent
749a1ad2be
commit
74ce1f51d9
|
@ -316,6 +316,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
|
||||
|
|
Loading…
Reference in New Issue
Block a user