also include ipxe script

This commit is contained in:
Jörg Thalheim 2021-06-12 09:00:47 +02:00
parent c76380e0ea
commit 2f842f70bd
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -6,10 +6,12 @@ set -xeuo pipefail
build_netboot_image() { build_netboot_image() {
declare -r tag=$1 arch=$2 tmp=$3 declare -r tag=$1 arch=$2 tmp=$3
img=$(nix-build --no-out-link -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" '<nixpkgs/nixos/release.nix>' -A "netboot.$arch") img=$(nix-build --no-out-link -I "nixpkgs=https://github.com/NixOS/nixpkgs/archive/${tag}.tar.gz" '<nixpkgs/nixos/release.nix>' -A "netboot.$arch")
cp "$img/bzImage" "$tmp/bzImage-$arch" ln -s "$img/bzImage" "$tmp/bzImage-$arch"
echo "$tmp/bzImage-$arch" echo "$tmp/bzImage-$arch"
cp "$img/initrd" "$tmp/initrd-$arch" ln -s "$img/initrd" "$tmp/initrd-$arch"
echo "$tmp/initrd-$arch" echo "$tmp/initrd-$arch"
ln -s "$img/netboot.ipxe" "$tmp/netboot-$arch.ipxe"
echo "$tmp/netboot-$arch.ipxe"
} }
build_kexec_bundle() { build_kexec_bundle() {