modules/microvm-host: let update-microvm handle more cases

This commit is contained in:
Astro 2022-09-22 02:03:31 +02:00
parent 5862adf9ed
commit a2df57960d
1 changed files with 4 additions and 2 deletions

View File

@ -89,9 +89,11 @@
if [ -e booted ]; then
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
echo "NOT BOOTED? Run:"
echo systemctl start microvm@$NAME
echo "NOT BOOTED?"
fi
CHANGED=no