Skip to content

Commit

Permalink
auto-detect the right kernel name to support aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverca22 committed May 28, 2021
1 parent 5ace332 commit a9a316a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kexec/kexec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
system.build = rec {
image = pkgs.runCommand "image" { buildInputs = [ pkgs.nukeReferences ]; } ''
mkdir $out
cp ${config.system.build.kernel}/bzImage $out/kernel
cp ${config.system.build.kernel}/${config.system.boot.loader.kernelFile} $out/kernel
cp ${config.system.build.netbootRamdisk}/initrd $out/initrd
echo "init=${builtins.unsafeDiscardStringContext config.system.build.toplevel}/init ${toString config.boot.kernelParams}" > $out/cmdline
nuke-refs $out/kernel
Expand Down

0 comments on commit a9a316a

Please sign in to comment.