fix sed expression

This commit is contained in:
Jörg Thalheim 2021-06-16 21:48:38 +02:00
parent a4baf92aaa
commit 505a5f7056
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -12,7 +12,7 @@ build_netboot_image() {
echo "$tmp/initrd-$arch" echo "$tmp/initrd-$arch"
sed -e "s!^kernel bzImage!kernel https://github.com/nix-community/nixos-images/releases/download/${tag}/bzImage-${arch}!" \ sed -e "s!^kernel bzImage!kernel https://github.com/nix-community/nixos-images/releases/download/${tag}/bzImage-${arch}!" \
-e "s!^initrd initrd!initrd https://github.com/nix-community/nixos-images/releases/download/${tag}/initrd-${arch}!" \ -e "s!^initrd initrd!initrd https://github.com/nix-community/nixos-images/releases/download/${tag}/initrd-${arch}!" \
-e "s!initrd=initrd!initrd=initrd-${arch}" \ -e "s!initrd=initrd!initrd=initrd-${arch}!" \
< "$img/netboot.ipxe" \ < "$img/netboot.ipxe" \
> "$tmp/netboot-$arch.ipxe" > "$tmp/netboot-$arch.ipxe"
echo "$tmp/netboot-$arch.ipxe" echo "$tmp/netboot-$arch.ipxe"