forked from c3d2/nix-config
flake.nix: let microvm-update-** properly create gcroots symlinks
This commit is contained in:
parent
57731ad815
commit
f464427520
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue