This conditionalizes adding support for UEFI when creating boot.iso
---
scripts/mk-images | 8 +++++---
scripts/mk-images.x86 | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/scripts/mk-images b/scripts/mk-images
index e9a44d7..7d842f4 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -447,10 +447,12 @@ if [ ${BUILDARCH} = s390x ]; then
elif [ ${BUILDARCH} = ppc64 ]; then
# ... and similar for ppc64
source $TOPDIR/mk-images.ppc
-elif [ ${BUILDARCH} = "x86_64" -o ${BUILDARCH} = "i386" ]; then
+elif [ ${BUILDARCH} = "x86_64" ]; then
+ export UEFI_BOOT_ISO="no"
+ source $TOPDIR/mk-images.x86
+ source $TOPDIR/mk-images.efi
+elif [ ${BUILDARCH} = "i386" ]; then
source $TOPDIR/mk-images.x86
- # Only generate EFI images on 64bit
- test ${BUILDARCH} = "x86_64" && source $TOPDIR/mk-images.efi
elif [ ${BUILDARCH} = "sparc64" -o ${BUILDARCH} = "sparcv9" ]; then
source $TOPDIR/mk-images.sparc
else
diff --git a/scripts/mk-images.x86 b/scripts/mk-images.x86
index d8fb867..20aef71 100644
--- a/scripts/mk-images.x86
+++ b/scripts/mk-images.x86
@@ -142,7 +142,8 @@ doPostImages() {
if [ -n "$BOOTISO" ]; then
EFIARGS=""
EFIGRAFT=""
- if [ -f $TOPDESTPATH/images/efiboot.img ]; then
+ if [ $UEFI_BOOT_ISO = "yes" -a
+ -f $TOPDESTPATH/images/efiboot.img ]; then
echo "Found efiboot.img, making an EFI-capable boot.iso"
EFIARGS="-eltorito-alt-boot -e images/efiboot.img -no-emul-boot"
EFIGRAFT="EFI/BOOT=$TOPDESTPATH/EFI/BOOT"
--
1.7.2.2
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
12-14-2010, 08:28 PM
"Brian C. Lane"
Conditionalize use of UEFI on boot.iso
On Tue, Dec 14, 2010 at 04:00:53PM -0500, Peter Jones wrote:
> This conditionalizes adding support for UEFI when creating boot.iso
> ---
> scripts/mk-images | 8 +++++---
> scripts/mk-images.x86 | 3 ++-
> 2 files changed, 7 insertions(+), 4 deletions(-)
Ack!
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
12-15-2010, 07:21 AM
Martin Gracik
Conditionalize use of UEFI on boot.iso
On Tue, 2010-12-14 at 16:00 -0500, Peter Jones wrote:
> This conditionalizes adding support for UEFI when creating boot.iso
> ---
> scripts/mk-images | 8 +++++---
> scripts/mk-images.x86 | 3 ++-
> 2 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/scripts/mk-images b/scripts/mk-images
> index e9a44d7..7d842f4 100755
> --- a/scripts/mk-images
> +++ b/scripts/mk-images
> @@ -447,10 +447,12 @@ if [ ${BUILDARCH} = s390x ]; then
> elif [ ${BUILDARCH} = ppc64 ]; then
> # ... and similar for ppc64
> source $TOPDIR/mk-images.ppc
> -elif [ ${BUILDARCH} = "x86_64" -o ${BUILDARCH} = "i386" ]; then
> +elif [ ${BUILDARCH} = "x86_64" ]; then
> + export UEFI_BOOT_ISO="no"
Didn't you mean "yes" ?
> + source $TOPDIR/mk-images.x86
> + source $TOPDIR/mk-images.efi
> +elif [ ${BUILDARCH} = "i386" ]; then
> source $TOPDIR/mk-images.x86
> - # Only generate EFI images on 64bit
> - test ${BUILDARCH} = "x86_64" && source $TOPDIR/mk-images.efi
> elif [ ${BUILDARCH} = "sparc64" -o ${BUILDARCH} = "sparcv9" ]; then
> source $TOPDIR/mk-images.sparc
> else
> diff --git a/scripts/mk-images.x86 b/scripts/mk-images.x86
> index d8fb867..20aef71 100644
> --- a/scripts/mk-images.x86
> +++ b/scripts/mk-images.x86
> @@ -142,7 +142,8 @@ doPostImages() {
> if [ -n "$BOOTISO" ]; then
> EFIARGS=""
> EFIGRAFT=""
> - if [ -f $TOPDESTPATH/images/efiboot.img ]; then
> + if [ $UEFI_BOOT_ISO = "yes" -a
> + -f $TOPDESTPATH/images/efiboot.img ]; then
> echo "Found efiboot.img, making an EFI-capable boot.iso"
> EFIARGS="-eltorito-alt-boot -e images/efiboot.img -no-emul-boot"
> EFIGRAFT="EFI/BOOT=$TOPDESTPATH/EFI/BOOT"
--
Martin Gracik <mgracik@redhat.com>
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
12-15-2010, 08:22 AM
Martin Gracik
Conditionalize use of UEFI on boot.iso
nevermind, I found your discussion on irc...
On Wed, 2010-12-15 at 09:21 +0100, Martin Gracik wrote:
> On Tue, 2010-12-14 at 16:00 -0500, Peter Jones wrote:
> > This conditionalizes adding support for UEFI when creating boot.iso
> > ---
> > scripts/mk-images | 8 +++++---
> > scripts/mk-images.x86 | 3 ++-
> > 2 files changed, 7 insertions(+), 4 deletions(-)
> >
> > diff --git a/scripts/mk-images b/scripts/mk-images
> > index e9a44d7..7d842f4 100755
> > --- a/scripts/mk-images
> > +++ b/scripts/mk-images
> > @@ -447,10 +447,12 @@ if [ ${BUILDARCH} = s390x ]; then
> > elif [ ${BUILDARCH} = ppc64 ]; then
> > # ... and similar for ppc64
> > source $TOPDIR/mk-images.ppc
> > -elif [ ${BUILDARCH} = "x86_64" -o ${BUILDARCH} = "i386" ]; then
> > +elif [ ${BUILDARCH} = "x86_64" ]; then
> > + export UEFI_BOOT_ISO="no"
>
> Didn't you mean "yes" ?
>
> > + source $TOPDIR/mk-images.x86
> > + source $TOPDIR/mk-images.efi
> > +elif [ ${BUILDARCH} = "i386" ]; then
> > source $TOPDIR/mk-images.x86
> > - # Only generate EFI images on 64bit
> > - test ${BUILDARCH} = "x86_64" && source $TOPDIR/mk-images.efi
> > elif [ ${BUILDARCH} = "sparc64" -o ${BUILDARCH} = "sparcv9" ]; then
> > source $TOPDIR/mk-images.sparc
> > else
> > diff --git a/scripts/mk-images.x86 b/scripts/mk-images.x86
> > index d8fb867..20aef71 100644
> > --- a/scripts/mk-images.x86
> > +++ b/scripts/mk-images.x86
> > @@ -142,7 +142,8 @@ doPostImages() {
> > if [ -n "$BOOTISO" ]; then
> > EFIARGS=""
> > EFIGRAFT=""
> > - if [ -f $TOPDESTPATH/images/efiboot.img ]; then
> > + if [ $UEFI_BOOT_ISO = "yes" -a
> > + -f $TOPDESTPATH/images/efiboot.img ]; then
> > echo "Found efiboot.img, making an EFI-capable boot.iso"
> > EFIARGS="-eltorito-alt-boot -e images/efiboot.img -no-emul-boot"
> > EFIGRAFT="EFI/BOOT=$TOPDESTPATH/EFI/BOOT"
>
--
Martin Gracik <mgracik@redhat.com>
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list