Tweak the xorriso command line to use old way of supporting EFI
Use the xorriso syntax that doesn't create a GPT but does create an EFI
partition recorded in MBR. This one is know to work on MAC and on most
UEFI implementations (even if the lack of GPT makes it non-conforming in
theory).
Raphaël Hertzog
9 years ago
|
0 |
live-build (3.0.5-1kali6) kali; urgency=medium
|
|
1 |
|
|
2 |
* Use the xorriso syntax that doesn't create a GPT but does create
|
|
3 |
an EFI partition recorded in MBR. This one is know to work on MAC
|
|
4 |
and on most UEFI implementations (even if the lack of GPT makes
|
|
5 |
it non-conforming in theory).
|
|
6 |
|
|
7 |
-- Raphaël Hertzog <[email protected]> Mon, 21 Jul 2014 16:53:29 +0200
|
|
8 |
|
0 | 9 |
live-build (3.0.5-1kali5) kali; urgency=medium
|
1 | 10 |
|
2 | 11 |
* Drop -isohybrid-apm-hfsplus as recommended by Thomas Schmitt.
|
48 | 48 |
esac
|
49 | 49 |
|
50 | 50 |
+if [ -e binary/boot/efi.img ]; then
|
51 | |
+ if [ "$XORRISO_VER" -le 10202 ]; then
|
|
51 |
+ #if [ "$XORRISO_VER" -le 10202 ]; then
|
52 | 52 |
+ # 1.2.2 shipping in wheezy
|
53 | 53 |
+ Echo "Using older EFI command line for xorriso $XORRISO_VER"
|
54 | 54 |
+ # Tell xorriso to create a secondary ElTorito boot record for the
|
|
58 | 58 |
+ # also boot on a USB key (like isohybrid, just implemented
|
59 | 59 |
+ # differently)
|
60 | 60 |
+ XORRISO_OPTIONS="${XORRISO_OPTIONS} -append_partition 2 0x01 binary/boot/efi.img"
|
61 | |
+ else
|
62 | |
+ Echo "Using newer EFI support in xorriso $XORRISO_VER"
|
63 | |
+ XORRISO_OPTIONS="${XORRISO_OPTIONS} -eltorito-alt-boot -e boot/efi.img -no-emul-boot"
|
64 | |
+ XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat"
|
65 | |
+ fi
|
|
61 |
+ #else
|
|
62 |
+ # Echo "Using newer EFI support in xorriso $XORRISO_VER"
|
|
63 |
+ # XORRISO_OPTIONS="${XORRISO_OPTIONS} -eltorito-alt-boot -e boot/efi.img -no-emul-boot"
|
|
64 |
+ # XORRISO_OPTIONS="${XORRISO_OPTIONS} -isohybrid-gpt-basdat"
|
|
65 |
+ #fi
|
66 | 66 |
+else
|
67 | 67 |
+ Echo "No EFI boot code to include in the ISO"
|
68 | 68 |
+fi
|