aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-11-23 15:20:09 +0000
committerMichael Brown <mcb30@ipxe.org>2021-11-23 15:26:55 +0000
commit0f4cc4b5a7f780111c3ef2e1d4bba175896f8537 (patch)
tree96ba475580585de87be5d79d6509f69b85072e12
parenta046da21a4c58365be6c029147799db974280048 (diff)
downloadipxe-0f4cc4b5a7f780111c3ef2e1d4bba175896f8537.zip
ipxe-0f4cc4b5a7f780111c3ef2e1d4bba175896f8537.tar.gz
ipxe-0f4cc4b5a7f780111c3ef2e1d4bba175896f8537.tar.bz2
[build] Include EFI system partition table entry in isohybrid images
Add the "--uefi" option when invoking isohybrid on an EFI-bootable image, to create a partition mapping to the EFI system partition embedded within the ISO image. This allows the resulting isohybrid image to be booted on UEFI systems that will not recognise an El Torito boot catalog on a non-CDROM device. Originally-fixed-by: Christian Hesse <mail@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rwxr-xr-xsrc/util/genfsimg3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/genfsimg b/src/util/genfsimg
index c131582..731fa6c 100755
--- a/src/util/genfsimg
+++ b/src/util/genfsimg
@@ -308,6 +308,9 @@ if [ -n "${ISOIMG}" ] ; then
${ISOARGS} "${ISODIR}"
if isohybrid --version >/dev/null 2>&1 ; then
ISOHYBRIDARGS=
+ if [ -n "${EFI}" ] ; then
+ ISOHYBRIDARGS="${ISOHYBRIDARGS} --uefi"
+ fi
if [ -n "${SOURCE_DATE_EPOCH:-}" ] ; then
ISOHYBRIDARGS="${ISOHYBRIDARGS} --id ${SOURCE_DATE_EPOCH}"
fi