Re: Create an UEFI-Bootable ISO-Image
Daniel Spannbauer <[email protected]> Thu, 5 Oct 2017 09:48:03 +0200
| Newsgroups | gmane.linux.suse.autoinstall |
|---|---|
| Message-ID | <[email protected]> |
> You need to use mkisofs (the original one by Joerg Schilling) instead of genisoimage; it’s in the Leap OSS repos (but sadly not in SLES, although you can grab it from OBS and/or rebuild the .src.rpm). > > Here’s how I invoke mkisofs to create an image bootable from both BIOS and UEFI : > ==== > BOOTOPTS="-b boot/x86_64/loader/isolinux.bin \ > -no-emul-boot -boot-load-size 4 -boot-info-table" > > # EFI boot support -- requires the official mkisofs by Joerg Schilling. > # Some versions of genisoimage (e.g. RedHat/Debian) support this with different > # options (via a local patch, not included in upstream), but not the SUSE one. > if mkisofs --version | grep -q Schilling; then > ALTBOOT="-eltorito-alt-boot -eltorito-platform efi \ > -no-emul-boot -boot-load-size 1 -b boot/x86_64/efi" > else > ALTBOOT="" > echo "Warning: disabling EFI support (not supported by this mkisofs)!" > echo "Continuing in 5 seconds..." > sleep 5 > fi > > mkisofs $VERBOSE -o $OUTPUT -V "$VOL_ID" -R \ > $BOOTOPTS $ALTBOOT -graft-points \ > -x $SRC/boot/x86_64/loader/isolinux.cfg \ > -x $SRC/boot/x86_64/loader/gfxboot.cfg \ > -x $SRC/boot/x86_64/loader/isolinux.bin \ > -x $SRC/EFI/BOOT/grub.cfg \ > -x $SRC/boot/x86_64/vmlinuz-xen \ > -x $SRC/boot/x86_64/initrd-xen \ > boot/=$SRC/boot EFI/=$SRC/EFI \ > boot/x86_64/vmlinuz-xen=$SRC/boot/x86_64/loader/linux \ > boot/x86_64/initrd-xen=$SRC/boot/x86_64/loader/initrd \ > $CDROOT \ > $SRC/content $SRC/content.asc $SRC/license.tar.gz $SRC/control.xml > ==== > > ($SRC is the path to the mounted DVD iso; I copy my own versions of isolinux.cfg/gfxboot.cfg (BIOS) and grub.cfg (UEFI) under $CDROOT/boot/x86_64/loader and $CDROOT/EFI/BOOT, respectively. The Xen stuff is for space saving, replicating what’s done on the official DVDs for 42.2/SLE12SP2 and newer, where the Xen kernel/initrd are hard links to the default kernel/initrd; for prior versions, they were different kernels.) > Hello Andrew, this works, thank you very much. Regards Daniel -- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email [email protected] Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: [email protected] To contact the owner, e-mail: [email protected]