Bug 851326

Summary: Building boot.iso with lorax 18.14-1 crashes with efi errors
Product: [Fedora] Fedora Reporter: Tim Flink <tflink>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, bcl, mgracik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-18.15-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-28 08:04:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to correct name of grub-cd.efi in lorax templates none

Description Tim Flink 2012-08-23 19:43:16 UTC
Created attachment 606693 [details]
patch to correct name of grub-cd.efi in lorax templates

When I try to build a boot.iso with lorax-18.14-1 using:
 - kernel-3.6.0-0.rc2.git2.1.fc18
 - 1:grub2-2.00-5.fc18

I get the following traceback during the build process:

running x86.tmpl
template command error in x86.tmpl:
  install boot/efi/EFI/fedora/grub-cd.efi EFI/BOOT/grubx64.efi
  IOError: nothing matching /work/Fedora/x86_64/installroot/boot/efi/EFI/fedora/grub-cd.efi in /
Traceback (most recent call last):
  File "/usr/bin/pungi", line 256, in <module>
    main()
  File "/usr/bin/pungi", line 146, in main
    mypungi.doBuildinstall()
  File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 909, in doBuildinstall
    workdir=workdir, outputdir=outputdir)
  File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 286, in run
    treebuilder.build()
  File "/usr/lib/python2.7/site-packages/pylorax/treebuilder.py", line 216, in build
    self._runner.run(templatefile, kernels=self.kernels)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 176, in run
    self._run(commands)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 195, in _run
    f(*args)
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 228, in install
    for src in rglob(self._in(srcglob), fatal=True):
  File "/usr/lib/python2.7/site-packages/pylorax/ltmpl.py", line 95, in rglob
    raise IOError, "nothing matching %s in %s" % (pathname, root)
IOError: nothing matching /work/Fedora/x86_64/installroot/boot/efi/EFI/fedora/grub-cd.efi in /
ERROR: Command failed. See logs for output.

It turns out that grub-cd.efi has been renamed to gcdx64.efi and causing the commands in the template to fail.

I was able to patch lorax to make it work with the new kernel/grub and it has been working well so far. The patch is attached to this bug

Comment 1 Fedora Update System 2012-08-23 22:19:35 UTC
lorax-18.15-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/lorax-18.15-1.fc18

Comment 2 Fedora Update System 2012-08-24 01:24:11 UTC
Package lorax-18.15-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing lorax-18.15-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-12621/lorax-18.15-1.fc18
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2012-08-28 08:04:52 UTC
lorax-18.15-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.