From 29dc8250e465f997c46eb19f027394b81ebf3c09 Mon Sep 17 00:00:00 2001 From: Jonathan Steffan Date: Jan 18 2016 05:01:12 +0000 Subject: Enable https support and update docs - Patch ipxe general config to enable https - Update docs with patching - Update information on how to boot from Fedora People --- diff --git a/bfo/README.rst b/bfo/README.rst index 651448d..5ee769c 100644 --- a/bfo/README.rst +++ b/bfo/README.rst @@ -21,12 +21,13 @@ Ensure the following dependencies are installed: dnf groupinstall 'Development Tools' dnf install syslinux-nonlinux xz-devel -Clone the repos and build: +Clone the repos, patch for https and build: :: git clone ssh://fasusername@git.fedorahosted.org/git/fedora-infrastructure.git cd fedora-infrastructure/bfo git clone git://git.ipxe.org/ipxe.git + patch -p0 < ipxe_enable_https.patch cd ipxe/src make EMBED=../../script0.ipxe @@ -73,12 +74,13 @@ Testing Changes --------------- To be able to test changes before publishing them, you can use Fedora People hosting and KVM. -Clone the repos, configure for your Fedora People and build: +Clone the repos, patch for https, configure for your Fedora People and build: :: git clone ssh://fasusername@git.fedorahosted.org/git/fedora-infrastructure.git cd fedora-infrastructure/bfo git clone git://git.ipxe.org/ipxe.git + patch -p0 < ipxe_enable_https.patch cd ipxe/src cat << EOF > script0.ipxe #!ipxe @@ -94,15 +96,20 @@ Clone the repos, configure for your Fedora People and build: EOF make EMBED=script0.ipxe -From the root of the fedora-infrastructure repo, copy your menu items to Fedora People: +Prepare your BFO dist: :: - scp -r bfo fasusername@fedorapeople.org/public_html/ + mkdir bfo + wget -P bfo https://alt.fedoraproject.org/pub/alt/bfo/pxelinux.0 \ + https://alt.fedoraproject.org/pub/alt/bfo/vesainfo.c32 \ + https://alt.fedoraproject.org/pub/alt/bfo/vesamenu.c32 \ + https://alt.fedoraproject.org/pub/alt/bfo/bfo.png + cp -r ../../pxelinux.cfg bfo -If needed, also put the latest copy of pxelinux.0 there: +Copy your BFO dist to Fedora People: :: - scp /usr/share/syslinux/pxelinux.0 fasusername@fedorapeople.org/public_html/bfo/ + scp -r bfo fasusername@fedorapeople.org:public_html/ Boot the ipxe.iso: diff --git a/bfo/ipxe_enable_https.patch b/bfo/ipxe_enable_https.patch new file mode 100644 index 0000000..cd25037 --- /dev/null +++ b/bfo/ipxe_enable_https.patch @@ -0,0 +1,12 @@ +diff -up ipxe/src/config/general.h.orig ipxe/src/config/general.h +--- ipxe/src/config/general.h.orig 2016-01-17 20:12:33.400371659 -0700 ++++ ipxe/src/config/general.h 2016-01-17 20:12:40.262362583 -0700 +@@ -53,7 +53,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + + #define DOWNLOAD_PROTO_TFTP /* Trivial File Transfer Protocol */ + #define DOWNLOAD_PROTO_HTTP /* Hypertext Transfer Protocol */ +-#undef DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ ++#define DOWNLOAD_PROTO_HTTPS /* Secure Hypertext Transfer Protocol */ + #undef DOWNLOAD_PROTO_FTP /* File Transfer Protocol */ + #undef DOWNLOAD_PROTO_SLAM /* Scalable Local Area Multicast */ + #undef DOWNLOAD_PROTO_NFS /* Network File System Protocol */