summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-07-03 14:06:17 +0200
committertv <tv@krebsco.de>2023-07-03 14:06:17 +0200
commit729f055c3d2a13eb088104ae68a2619e2a7632f1 (patch)
treecae482ddccc2ab125875c6a92a34a1f1678b681d
parent0f9512d699b3eed35fe23d1f95085f84fbf5c0b9 (diff)
kexec: add support for aarch64
-rw-r--r--kexec.nix6
1 files changed, 5 insertions, 1 deletions
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
'';