diff --git a/README.livemedia-creator b/README.livemedia-creator index 5634617a..cee3bc44 100644 --- a/README.livemedia-creator +++ b/README.livemedia-creator @@ -145,6 +145,16 @@ You can also add an update repo, but don't name it updates. Add --proxy to it as well. +UEFI Disk Image Creation +------------------------ +When making a live iso the bootloader is added after Anaconda has run. As long as +anaconda-tools and grub2-efi-*-cdboot are included in the kickstart the iso will +be bootable on UEFI systems. + +To create a disk image, eg. using rhel7-minimal.ks, livemedia-creator needs to be +run from a UEFI system or virt running UEFI firmware. + + ANACONDA IMAGE INSTALL ---------------------- You can create images without using virt-install by passing --no-virt on the diff --git a/docs/rhel7-livemedia.ks b/docs/rhel7-livemedia.ks index cf13ba3c..c2094bba 100644 --- a/docs/rhel7-livemedia.ks +++ b/docs/rhel7-livemedia.ks @@ -351,7 +351,10 @@ cat /dev/null > /etc/fstab %end %packages -@anaconda-tools +# Packages needed by anaconda, but not directly required. +# Includes all of the grub2 and shim packages needed, except +# for the grub2-efi-*-cdboot package +@anaconda-tools --optional @core @fonts @x11 @@ -363,4 +366,7 @@ kernel memtest86+ syslinux -dracut-config-rescue + +# This package is needed to boot the iso on UEFI +grub2-efi-*-cdboot %end diff --git a/docs/rhel7-minimal.ks b/docs/rhel7-minimal.ks index cece45fe..7d0f1f55 100644 --- a/docs/rhel7-minimal.ks +++ b/docs/rhel7-minimal.ks @@ -47,9 +47,16 @@ rm /var/lib/systemd/random-seed @core kernel memtest86+ +efibootmgr grub2-efi grub2 shim syslinux -dracut-config-rescue + +# Boot on 32bit UEFI +shim-ia32 + +# NOTE: To build a bootable UEFI disk image livemedia-creator needs to be +# run on a UEFI system or virt. %end