diff --git a/packages.nix b/packages.nix index 8a4050f4..da361d46 100644 --- a/packages.nix +++ b/packages.nix @@ -118,7 +118,7 @@ lib.attrsets.mapAttrs if [[ $(ssh ${target} cat /etc/hostname) != ${name} ]]; then echo "hostname of the target machine does not match, please manually investigate!" echo " $(ssh ${target} cat /etc/hostname) != ${name}" - exit 1 + exit 2 fi nix copy --no-check-sigs --to ssh-ng://${target} ${inputPaths} nix copy --no-check-sigs --derivation --to ssh-ng://${target} ${toplevelDrvPath} @@ -222,7 +222,7 @@ lib.attrsets.mapAttrs if [[ $(cat /etc/hostname) != ${name} ]]; then echo "hostname of the target machine does not match, please manually investigate!" echo " $(ssh ${target} cat /etc/hostname) != ${name}" - exit 1 + exit 2 fi ${discardStringCtx hostConfig.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath} ${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}" @@ -239,7 +239,7 @@ lib.attrsets.mapAttrs ${lib.optionalString (!builtins.elem (hostConfig.c3d2.deployment.server or null) [ "server9" "server10" ]) '' echo "MicroVM must be configured to proper server" >&2 - exit 1 + exit 2 ''} ${hostConfig.system.build.copyToServer} ${declaredRunnerDrvPath}