Skip to content

Commit

Permalink
Merge pull request #61 from stbenjam/ipxe-efi
Browse files Browse the repository at this point in the history
Bug 1810078: Copy iPXE binaries directly to /shared at runtime
  • Loading branch information
openshift-merge-robot committed Mar 23, 2020
2 parents 7b39640 + 24aad3f commit b9e59af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
3 changes: 0 additions & 3 deletions Dockerfile.ocp
Expand Up @@ -22,9 +22,6 @@ RUN yum update -y && \
yum clean all && \
rm -rf /var/cache/{yum,dnf}/*

COPY ./prepare-ipxe.sh /tmp
RUN chmod +x /tmp/prepare-ipxe.sh && /tmp/prepare-ipxe.sh && rm /tmp/prepare-ipxe.sh

COPY --from=builder /tmp/esp.img /httpboot/uefi_esp.img

COPY ./ironic.conf /tmp/ironic.conf
Expand Down
12 changes: 0 additions & 12 deletions prepare-ipxe.sh

This file was deleted.

10 changes: 9 additions & 1 deletion rundnsmasq.sh
Expand Up @@ -19,7 +19,15 @@ mkdir -p /shared/html/pxelinux.cfg
mkdir -p /shared/log/dnsmasq

# Copy files to shared mount
cp /usr/share/ipxe/undionly.kpxe /usr/share/ipxe/ipxe.efi /shared/tftpboot
cp /usr/share/ipxe/undionly.kpxe /shared/tftpboot
if [ -f "/usr/share/ipxe/ipxe.efi" ]; then
cp /usr/share/ipxe/ipxe.efi /shared/tftpboot/ipxe.efi
elif [ -f "/usr/share/ipxe/ipxe-x86_64.efi" ]; then
cp /usr/share/ipxe/ipxe-x86_64.efi /shared/tftpboot/ipxe.efi
else
echo "Fatal Error - Failed to find ipxe binary"
exit 1
fi

# Use configured values
sed -i -e s/IRONIC_IP/${PROVISIONING_IP}/g -e s/HTTP_PORT/${HTTP_PORT}/g \
Expand Down

0 comments on commit b9e59af

Please sign in to comment.