Menu

Hiding OSX 32 bit Kernel option from Sub Menu

Crimsonfox
2017-06-09
2017-06-09
  • Crimsonfox

    Crimsonfox - 2017-06-09

    Hi all,

    I'm almost done configuring rEFInd just the way I want it in our Mac suite but there's one last thing I can't figure out. I would like to hide the option to boot into OSX 32 bit mode from the submenu but I don't know enough about OSX to accomplish this.

    Thanks in advance.

     
  • Roderick W. Smith

    I don't think there's an easy way to do that. (The rEFInd OS X submenu options are inherited from rEFIt, and I don't recall making anything more than trivial changes to that code.)

    If you're motivated enough, you could create a manual boot stanza that replicates what the auto-detected boot entry does, then hide the auto-detected entry in any of several ways. (You could use dont_scan_volumes, dont_scan_dirs, or dont_scan_files; or edit scanfor to stop automatic scanning entirely.) See the section of the rEFInd documentation on manual boot stanzas for documentation on this topic. To learn precisely what options you'd need to pass to replicate existing options, see the GenerateSubScreen() function in rEFInd's main.c file. (Pay attention to the various SubEntry->LoadOptions lines.)

    Unless you have a compelling reason to do this, it's probably not worth bothering to remove those options. FWIW, I just tried it on my MacBook Air running macOS 10.12.3, and it booted fine with a 32-bit kernel. I have heard that Apple plans to phase out 32-bit support soon, but I don't know what will happen if you select the 32-bit kernel option in rEFInd after this happens. If this is already becoming an actual problem, then I'll look into either adding a refind.conf option to remove those entries or finding a way for rEFInd to auto-detect when they won't work. (The latter may not be practical, though.)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.