summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2023-12-17 16:27:05 +0100
committerStefan Kreutz <mail@skreutz.com>2023-12-17 16:27:05 +0100
commit5bd680d0771ea40a2cb1ba6ddef9720d1c371fd5 (patch)
treeee4afef81b334fc099866956b3b3f8307d431ec5
parentced85ddfe780fa938f703473a6e8f2230354541d (diff)
downloadopenbsd-installiso-5bd680d0771ea40a2cb1ba6ddef9720d1c371fd5.tar
Support EFI bootopenbsd-installiso-0.1.2
See https://cvsweb.openbsd.org/src/distrib/amd64/iso/Makefile?rev=1.47&content-type=text/x-cvsweb-markup
-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.