summaryrefslogtreecommitdiff
path: root/installiso.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'installiso.ksh')
-rwxr-xr-xinstalliso.ksh6
1 files changed, 5 insertions, 1 deletions
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"
Generated by cgit. See skreutz.com for my tech blog and contact information.