build/dvd: subtle breakage in UEFI write for DVD on FreeBSD 11.2
This commit is contained in:
parent
05ef38b3e5
commit
d2d93e7285
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Copyright (c) 2014-2017 Franco Fichtner <franco@opnsense.org>
|
# Copyright (c) 2014-2019 Franco Fichtner <franco@opnsense.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
|
@ -59,7 +59,7 @@ if [ ${PRODUCT_ARCH} = "amd64" -a -n "${PRODUCT_UEFI}" ]; then
|
||||||
mdconfig -d -u ${DEV}
|
mdconfig -d -u ${DEV}
|
||||||
|
|
||||||
UEFIBOOT="-o bootimage=i386;${STAGEDIR}/efiboot.img"
|
UEFIBOOT="-o bootimage=i386;${STAGEDIR}/efiboot.img"
|
||||||
UEFIBOOT="${UEFIBOOT} -o no-emul-boot"
|
UEFIBOOT="${UEFIBOOT} -o no-emul-boot -o platformid=efi"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n ">>> Building dvd image... "
|
echo -n ">>> Building dvd image... "
|
||||||
|
@ -70,8 +70,8 @@ cat > ${STAGEDIR}/work/etc/fstab << EOF
|
||||||
tmpfs /tmp tmpfs rw,mode=01777 0 0
|
tmpfs /tmp tmpfs rw,mode=01777 0 0
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
makefs -t cd9660 ${UEFIBOOT} \
|
makefs -t cd9660 \
|
||||||
-o 'bootimage=i386;'"${STAGEDIR}"'/work/boot/cdboot' -o no-emul-boot \
|
-o 'bootimage=i386;'"${STAGEDIR}"'/work/boot/cdboot' -o no-emul-boot \
|
||||||
-o label=${DVDLABEL} -o rockridge ${DVDIMAGE} ${STAGEDIR}/work
|
${UEFIBOOT} -o label=${DVDLABEL} -o rockridge ${DVDIMAGE} ${STAGEDIR}/work
|
||||||
|
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
Loading…
Reference in New Issue