Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vasi

macrumors newbie
Original poster
Sep 14, 2025
6
4
I've become pretty frustrated with Yaboot and Grub, so I made my own tiny first-stage boot chooser called ofchooser.

It's based on the yaboot first-stage loader, but different! Some reasons I like it:
  • I can choose a custom key to boot each OS
  • I can have multiple Mac OS partitions or Linux partitions, not just one
  • I can hit an unused key to stop the timeout, if I need time to think
Check it out, and let me know what you think.
 
I've become pretty frustrated with Yaboot and Grub, so I made my own tiny first-stage boot chooser called ofchooser.

It's based on the yaboot first-stage loader, but different! Some reasons I like it:
  • I can choose a custom key to boot each OS
  • I can have multiple Mac OS partitions or Linux partitions, not just one
  • I can hit an unused key to stop the timeout, if I need time to think
Check it out, and let me know what you think.

Can it handle a case when initial boot is from one drive, and then it is redirected to another? Use case: I got a PCIe SSD card, which can support faster SSDs, but those are not bootable on a PowerMac. Not sure such a trick works with macOS, but if not, I could install OpenBSD there or something like that.
 
Can it handle a case when initial boot is from one drive, and then it is redirected to another?
This is just a first-stage boot-chooser, it doesn't really change what's bootable. Nevertheless, here's my advice.

There's two possible ways you could try to boot from your SSD:

1. It may be visible from Open Firmware. Boot into OF (holding down Cmd-Opt-O-F) and use the "dev / ls" and "dir ..." commands to see if your SSD device is visible. If so, you can probably boot directly off that device with the right boot string.

2. If it's not visible from Open Firmware, your bootloader (Grub, Yaboot), kernel and initrd will need to be on a visible device like your internal hard drive. But you may be able to boot that internal-HD kernel and tell it to use a root filesystem on your SSD, which would preserve most of the space and speed benefits of the SSD. You probably want to first try booting a live USB like the ArchPower one, to make sure the Linux kernel can actually see your SSD.
 
  • Like
Reactions: barracuda156
Seems to not function correctly, at least on my HR 17.

ofchooser will show up when invoked, but accepts no keyboard input and will simply boot to default after timeout.

Could possibly be due to USB-type keyboard vs ADB-type keyboard.
 
ofchooser will show up when invoked, but accepts no keyboard input and will simply boot to default after timeout.
Thank you for testing! Have you ever used yaboot, and did that work for you?
 
Thank you for testing! Have you ever used yaboot, and did that work for you?
You know what. I don't think I ever have on this machine.

I swapped SSDs with my old 15-in a while back, and it used to be that this SSD had what I believed to be some sort of Linux on it, and I think it's still there, but I've never been able to boot into it on this machine. I think it might've been Adelie or maybe Gentoo, since there's a grub.cfg sitting on the bootstrap partition, but no bootable file.

Yeah, I don't think I've ever use yaboot to boot a Linux on this machine. I can't particularly go and check either because I have no optical drive (it was bung when I got it).
 
Which machine do you have? If it has USB you can probably boot from that.
 
Can it handle a case when initial boot is from one drive, and then it is redirected to another? Use case: I got a PCIe SSD card, which can support faster SSDs, but those are not bootable on a PowerMac. Not sure such a trick works with macOS, but if not, I could install OpenBSD there or something like that.
I know xpostfacto is capable of doing this. It lets you pick a "helper" disk which is useful for old macs with an 8GB boot limitation and Mac OS X. But I feel like this would also work with what you're trying to do. I'm not sure how one would set it up though. If anyone knows what XPF is actually doing in that scenario, we could probably do it ourselves.
 
  • Like
Reactions: barracuda156
This does accept keyboard input on the only machine I have available to test it. Weird! ofchooser uses basically the same keyboard input as yaboot's first stage loader, so I don't really understand why one would work and not the other.
 
Found it. It is the probe-usb command on line 10. I'm not sure exactly what it does, but removing the line allows for keyboard input once more.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.