forked from c3d2/nix-config
modules/microvm-host: let update-microvm handle more cases
This commit is contained in:
parent
5862adf9ed
commit
a2df57960d
|
@ -89,9 +89,11 @@
|
||||||
|
|
||||||
if [ -e booted ]; then
|
if [ -e booted ]; then
|
||||||
nix store diff-closures $(readlink booted) $NEW
|
nix store diff-closures $(readlink booted) $NEW
|
||||||
|
elif [ -e current ]; then
|
||||||
|
echo "NOT BOOTED! Diffing to old current:"
|
||||||
|
nix store diff-closures $(readlink current) $NEW
|
||||||
else
|
else
|
||||||
echo "NOT BOOTED? Run:"
|
echo "NOT BOOTED?"
|
||||||
echo systemctl start microvm@$NAME
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CHANGED=no
|
CHANGED=no
|
||||||
|
|
Loading…
Reference in New Issue