Red Hat Bugzilla – Bug 787787
mkefiboot crashes with --apple option by using old mkfs command
Last modified: 2012-02-10 12:39:19 EST
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
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__
File "/usr/lib64/python2.7/subprocess.py", line 1228, in _execute_child
OSError: [Errno 2] No such file or directory
Submitting as F17 alpha blocker because it blocks image composition.
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:
Patch has been submitted to anaconda-devel-list:
Patch is available at:
Locally built rpm with this patch and the patch to fix #787781 is available at:
20120206_hfspatchtest.boot.iso burned to CD:
Macbook Pro i7 shows 3 additional icons on boot with "options "Key held down:
Boots to start screen
Install or upgrade fedora
EFI Boot (CD)
EFI Boot (Fedora Branding)
Both Boot to Grub 0.97-85.f17 prompt:
Patch from comment #3 has been applied and is in upstream git.
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