From 687bbefad848b04ebe8808baad50c5135ed04bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Wed, 18 Mar 2020 15:12:01 +0100 Subject: [PATCH] build_library/vm_image_util.sh: Generate iPXE script Write out an iPXE script file for Packet. The script uses relative URLs to refer to the other PXE files and thus can be copied along with the files to any server. This is useful because it saves the creation of an iPXE script for a release/channel on a third-party service. For CI testing it is also helpful because the script does not only end up on the release server but also already on the Google buckets, refering to unpublished PXE payloads. --- build_library/vm_image_util.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 631ad37720..eb6b1fee02 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -768,6 +768,15 @@ You can pass extra kernel parameters with -append, for example: When using -nographic or -serial you must also enable the serial console: ./$(basename "${script}") -nographic -append 'console=ttyS0,115200n8' EOF + local packetipxe="$(_dst_dir)/flatcar_production_packet.ipxe" + cat > "$packetipxe" <