diff --git a/nix/kexec-installer/module.nix b/nix/kexec-installer/module.nix index 0a852bc..98f11bb 100644 --- a/nix/kexec-installer/module.nix +++ b/nix/kexec-installer/module.nix @@ -47,6 +47,10 @@ in { cp "${config.system.build.kexecRun}" kexec/run cp "${pkgs.pkgsStatic.kexec-tools}/bin/kexec" kexec/kexec cp "${iprouteStatic}/bin/ip" kexec/ip + ${lib.optionalString (pkgs.hostPlatform == pkgs.buildPlatform) '' + kexec/ip -V + kexec/kexec --version + ''} tar -czvf $out/${config.system.kexec-installer.name}-${pkgs.stdenv.hostPlatform.system}.tar.gz kexec ''; diff --git a/nix/kexec-installer/test.nix b/nix/kexec-installer/test.nix index b690cbf..431480c 100644 --- a/nix/kexec-installer/test.nix +++ b/nix/kexec-installer/test.nix @@ -131,7 +131,9 @@ makeTest' { node1.succeed('touch /run/foo') node1.fail('parted --version >&2') node1.succeed('tar -xf ${kexecTarball}/nixos-kexec-installer-noninteractive-${pkgs.system}.tar.gz -C /root') - node1.execute('/root/kexec/run >&2') + node1.succeed('/root/kexec/ip -V >&2') + node1.succeed('/root/kexec/kexec --version >&2') + node1.succeed('/root/kexec/run >&2') # wait for kexec to finish while ssh(["true"], check=False).returncode == 0: