diff options
author | tv <tv@krebsco.de> | 2023-07-03 14:06:17 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-07-03 14:06:17 +0200 |
commit | 729f055c3d2a13eb088104ae68a2619e2a7632f1 (patch) | |
tree | cae482ddccc2ab125875c6a92a34a1f1678b681d | |
parent | 0f9512d699b3eed35fe23d1f95085f84fbf5c0b9 (diff) |
kexec: add support for aarch64
-rw-r--r-- | kexec.nix | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 ''; |