Bug 787787

Summary: mkefiboot crashes with --apple option by using old mkfs command
Product: [Fedora] Fedora Reporter: Tim Flink <tflink>
Component: loraxAssignee: Will Woods <wwoods>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, awilliam, bcl, mgracik, robatino, satellitgo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-17.3-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-10 17:39:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 752648    

Description Tim Flink 2012-02-06 18:10:02 UTC
While creating the EFI boot image for apple machines, lorax calls mkfs.hfs and crashes with a 'no such file or directory' error from the subprocess call.

[root@f17rawhide fedora_images]# mkefiboot --label=ANACONDA --apple --icon=/home/tflink/fedora_images/work/Fedora/x86_64/installroot/usr/share/pixmaps/bootloader/fedora.icns /home/tflink/fedora_images/f17usrmove-test1/Fedora/x86_64/os/EFI/BOOT /home/tflink/fedora_images/f17usrmove-test1/Fedora/x86_64/os/images/macboot.img
Traceback (most recent call last):
  File "/sbin/mkefiboot", line 105, in <module>
    mkmacboot(opt.bootdir, opt.outfile, opt.label, opt.icon)
  File "/sbin/mkefiboot", line 35, in mkmacboot
    mkhfsimg(None, outfile, label=label, graft=graft)
  File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line 294, in mkhfsimg
    mkfsargs=["-v", label], graft=graft)
  File "/usr/lib/python2.7/site-packages/pylorax/imgutils.py", line 273, in mkfsimage
    stdout=PIPE, stderr=PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 506, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Comment 1 Tim Flink 2012-02-06 18:11:28 UTC
Submitting as F17 alpha blocker because it blocks image composition.

Comment 2 Tim Flink 2012-02-06 18:15:33 UTC
I patched lorax locally such that it doesn't crash during image compose and I suspect that everything will work but I don't have a mac to test with.

I'm planning to submit the lorax patch shortly (it's a small one-liner).

The test iso is available at:
http://tflink.fedorapeople.org/iso/20120206_hfspatchtest.boot.iso
http://tflink.fedorapeople.org/iso/20120206_hfspatchtest.boot.iso.sha256

Comment 3 Tim Flink 2012-02-06 18:27:57 UTC
Patch has been submitted to anaconda-devel-list:
https://www.redhat.com/archives/anaconda-devel-list/2012-February/msg00034.html

Patch is available at:
http://tflink.fedorapeople.org/packages/lorax/0001-changing-hfs-to-hfsplus-so-that-the-correct-mkfs-bin.patch

Locally built rpm with this patch and the patch to fix #787781 is available at:
http://tflink.fedorapeople.org/packages/lorax/lorax-17.3-usrmove2.fc17.x86_64.rpm

Comment 4 satellitgo 2012-02-06 19:59:05 UTC
20120206_hfspatchtest.boot.iso burned to CD:

Macbook Pro i7 shows 3 additional icons on boot with "options "Key held down:
Macintosh HD

Windows   (CD) 
 Boots to start screen
  Install or upgrade fedora
  Troubleshooting

EFI Boot  (CD)
EFI Boot (Fedora Branding)
Both Boot to Grub 0.97-85.f17 prompt:

Comment 5 Will Woods 2012-02-07 22:27:58 UTC
Patch from comment #3 has been applied and is in upstream git.

Comment 6 Adam Williamson 2012-02-10 17:39:19 UTC
Discussed at 2012-02-10 blocker review meeting. Fix for this issue was included in the lorax used for TC2 and the issue is resolved, so closing.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers