From 729f055c3d2a13eb088104ae68a2619e2a7632f1 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 3 Jul 2023 14:06:17 +0200 Subject: kexec: add support for aarch64 --- kexec.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kexec.nix b/kexec.nix index 0487197..4f14e01 100644 --- a/kexec.nix +++ b/kexec.nix @@ -11,7 +11,11 @@ system.build = { image = pkgs.runCommand "image" { buildInputs = [ pkgs.nukeReferences ]; } '' mkdir $out - cp ${config.system.build.kernel}/bzImage $out/kernel + image=${builtins.getAttr config.nixpkgs.system { + aarch64-linux = "${config.system.build.kernel}/Image"; + x86_64-linux = "${config.system.build.kernel}/bzImage"; + }} + cp "$image" $out/kernel cp ${config.system.build.netbootRamdisk}/initrd $out/initrd nuke-refs $out/kernel ''; -- cgit v1.2.3