From 5bd680d0771ea40a2cb1ba6ddef9720d1c371fd5 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Sun, 17 Dec 2023 16:27:05 +0100 Subject: Support EFI boot See https://cvsweb.openbsd.org/src/distrib/amd64/iso/Makefile?rev=1.47&content-type=text/x-cvsweb-markup --- installiso.ksh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/installiso.ksh b/installiso.ksh index 24464ee..8d014b8 100755 --- a/installiso.ksh +++ b/installiso.ksh @@ -233,12 +233,16 @@ function patch { debug "Patched ISO 9660 image contents" info "Creating bootable ISO 9660 image ..." - # Source: https://github.com/openbsd/src/blob/1bc16d1a27cb5482308dc0201812e706df3d7287/distrib/amd64/iso/Makefile#L80 + # Source: https://cvsweb.openbsd.org/src/distrib/amd64/iso/Makefile?rev=1.47&content-type=text/x-cvsweb-markup + if [ -e "${tmp}/cd/${_release}/${_arch}/eficdboot" ] ; then + _efi=1 + fi if ! mkhybrid -a -R -T -L -l -d -D -N -o "${_output_iso}" \ -A "Custom OpenBSD ${_release} ${_arch} Install CD" \ -P "Copyright (c) $(date +%Y) Theo de Raadt, The OpenBSD project" \ -p "Generated using installiso(8)" \ -b "${_release}/${_arch}/cdbr" -c "${_release}/${_arch}/boot.catalog" \ + ${_efi:+-e "${_release}/${_arch}/eficdboot"} \ "${tmp}/cd" then rm -f "$_output_iso" -- cgit v1.2.3