Allow makefs to properly tag UEFI El Torito boot images. Use them in amd64 ISOs.
authorBenno Rice <benno@FreeBSD.org>
Fri, 23 Mar 2018 20:56:18 +0000 (20:56 +0000)
committerBenno Rice <benno@FreeBSD.org>
Fri, 23 Mar 2018 20:56:18 +0000 (20:56 +0000)
commit8dbc390581f7bf64c0a99007a1d68c147ab87581
treefe3436191bb672398acf01fec09a2f3fd5533327
parentf8268d4d9714fc4d75fd294a0e9bb247306b8223
Allow makefs to properly tag UEFI El Torito boot images. Use them in amd64 ISOs.

UEFI booting requires an EFI System Partition (ESP). On most storage devices
this will be in a specific partition type. To allow booting from CD/ISO
filesystems, UEFI will look for an ESP in the form of a FAT filesystem image
embedded in the image. Historically FreeBSD has added one of these to its
amd64 ISO images but marked it as simply another i386 boot image. Luckily for
us most UEFI implementations are rather forgiving and work this out for us.

This change adds the ability to mark a boot image as being a UEFI image. It
also modifies our ISO generation to use this marking for the UEFI image we
embed.

Reported by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed by: emaste, imp
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D14809
release/amd64/mkisoimages.sh
usr.sbin/makefs/cd9660/cd9660_eltorito.c
usr.sbin/makefs/cd9660/cd9660_eltorito.h