mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[build] Handle isohybrid with xorrisofs
Generating an isohybrid image with `xorrisofs` is supposed to happen with option `-isohybrid-gpt-basdat`, not command `isohybrid`. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
e223b32511
commit
06083d2676
@@ -293,6 +293,7 @@ if [ -n "${ISOIMG}" ] ; then
|
|||||||
MKISOFS=
|
MKISOFS=
|
||||||
MKISOFS_MISSING=
|
MKISOFS_MISSING=
|
||||||
MKISOFS_NOTSUP=
|
MKISOFS_NOTSUP=
|
||||||
|
NOISOHYBRID=
|
||||||
for CMD in genisoimage mkisofs xorrisofs ; do
|
for CMD in genisoimage mkisofs xorrisofs ; do
|
||||||
if ! "${CMD}" --version >/dev/null 2>&1 ; then
|
if ! "${CMD}" --version >/dev/null 2>&1 ; then
|
||||||
MKISOFS_MISSING="${MKISOFS_MISSING} ${CMD}"
|
MKISOFS_MISSING="${MKISOFS_MISSING} ${CMD}"
|
||||||
@@ -315,11 +316,15 @@ if [ -n "${ISOIMG}" ] ; then
|
|||||||
echo "${0}: cannot find a suitable mkisofs or equivalent" >&2
|
echo "${0}: cannot find a suitable mkisofs or equivalent" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [ "${MKISOFS}" = "xorrisofs" ] ; then
|
||||||
|
ISOARGS="${ISOARGS} -isohybrid-gpt-basdat"
|
||||||
|
NOISOHYBRID=1
|
||||||
|
fi
|
||||||
"${MKISOFS}" -quiet -volid "iPXE" -preparer "iPXE build system" \
|
"${MKISOFS}" -quiet -volid "iPXE" -preparer "iPXE build system" \
|
||||||
-appid "iPXE - Open Source Network Boot Firmware" \
|
-appid "iPXE - Open Source Network Boot Firmware" \
|
||||||
-publisher "ipxe.org" -sysid "iPXE" -o "${ISOIMG}" \
|
-publisher "ipxe.org" -sysid "iPXE" -o "${ISOIMG}" \
|
||||||
${ISOARGS} "${ISODIR}"
|
${ISOARGS} "${ISODIR}"
|
||||||
if isohybrid --version >/dev/null 2>&1 ; then
|
if [ -z "${NOISOHYBRID}" ] && isohybrid --version >/dev/null 2>&1 ; then
|
||||||
ISOHYBRIDARGS=
|
ISOHYBRIDARGS=
|
||||||
if [ -n "${EFI}" ] ; then
|
if [ -n "${EFI}" ] ; then
|
||||||
ISOHYBRIDARGS="${ISOHYBRIDARGS} --uefi"
|
ISOHYBRIDARGS="${ISOHYBRIDARGS} --uefi"
|
||||||
|
|||||||
Reference in New Issue
Block a user