hostPlatform.platform.kernelTarget -> hostPlatform.linux-kernel.target

This commit is contained in:
David Guibert 2021-04-25 19:17:32 +02:00
parent 12414bf7b2
commit ef7ac7f917

View File

@ -10,7 +10,7 @@ in
runCommand "netboot" {
pxe = ''
#!ipxe
kernel ${pkgs.stdenv.hostPlatform.platform.kernelTarget} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
kernel ${pkgs.stdenv.hostPlatform.linux-kernel.target} init=${config.system.build.toplevel}/init ${cmdlineinitrds} ${toString config.boot.kernelParams}
${builtins.concatStringsSep "\n" (builtins.attrValues (builtins.mapAttrs (name: path: "initrd ${name}") initrds))}
initrd initrd
boot
@ -19,7 +19,7 @@ runCommand "netboot" {
} ''
mkdir stage
cd stage
ln -s "${config.system.build.kernel}/${pkgs.stdenv.hostPlatform.platform.kernelTarget}" ./
ln -s "${config.system.build.kernel}/${pkgs.stdenv.hostPlatform.linux-kernel.target}" ./
set -x
${builtins.concatStringsSep "\n"