packages: use exit 2

This commit is contained in:
Sandro - 2023-11-13 03:05:32 +01:00
parent 6c5830b591
commit d5a5fdb800
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 3 deletions

View File

@ -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}