The date of your Mac suggests that it probably has a 32-bit EFI. You can check this detail in the rEFInd "About" screen; check the "Platform" line to learn the bit depth. This is relevant because Yosemite doesn't run on all Macs. It won't run on my ancient 32-bit Mac Mini, for instance. In fact, according to this requirements page, only 2008 and later MacBook Air and MacBook models work with Yosemite, although mid-2007 and later MacBook Pros work. Thus, unless your MacBook is a Pro model, the failure you're seeing is probably because it's not compatible with Yosemite.
If you're really desperate to run Yosemite, I've heard of upgrades to older models that may make them compatible. I don't have any references, though. You're best off asking about this on a Mac forum.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am new to rEFInd.
I want to boot my MacBook (mid 2007) from USB to install Mac OS X Yosemite.
Because it does not boot directly from the usb key (I have tried with the Startup manager), I am trying to boot it with rEFInd.
Here is the error message :
"Invalid Loader File"
Error : Not Found while loading boot.efi
Any help would be great
Last edit: mapomme 2015-07-04
The date of your Mac suggests that it probably has a 32-bit EFI. You can check this detail in the rEFInd "About" screen; check the "Platform" line to learn the bit depth. This is relevant because Yosemite doesn't run on all Macs. It won't run on my ancient 32-bit Mac Mini, for instance. In fact, according to this requirements page, only 2008 and later MacBook Air and MacBook models work with Yosemite, although mid-2007 and later MacBook Pros work. Thus, unless your MacBook is a Pro model, the failure you're seeing is probably because it's not compatible with Yosemite.
If you're really desperate to run Yosemite, I've heard of upgrades to older models that may make them compatible. I don't have any references, though. You're best off asking about this on a Mac forum.