diff options
author | Stefan Kreutz <mail@skreutz.com> | 2023-12-17 16:27:05 +0100 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2023-12-17 16:27:05 +0100 |
commit | 5bd680d0771ea40a2cb1ba6ddef9720d1c371fd5 (patch) | |
tree | ee4afef81b334fc099866956b3b3f8307d431ec5 | |
parent | ced85ddfe780fa938f703473a6e8f2230354541d (diff) | |
download | openbsd-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-x | installiso.ksh | 6 |
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" |