diff options
| -rw-r--r-- | krops.nix | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -255,6 +255,13 @@ rec { ${enstateSteps.packAndCopy} ${pkgs.krops.runShell (lib.mkTarget target) {} /* sh */ '' set -efu + # The running generation isn't the profile's (after a deploy with boot, + # or test): it would plan what's meant for the one the next boot runs, + # and refuse what only that one has a slot for. + if [ "$(readlink -f /nix/var/nix/profiles/system)" != "$(readlink -f /run/current-system)" ]; then + echo "${name}: the running generation isn't the system profile's: reboot, or deploy" >&2 + exit 1 + fi ${enstateSteps.movePending} /run/current-system/sw/bin/enstate --migrate ${enstateSteps.showStatus "/run/current-system"} |
