Building grub-mkrescue on OS X Maverics

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
hazy
Posts: 2
Joined: Sun Mar 30, 2014 9:57 am

Building grub-mkrescue on OS X Maverics

Post by hazy »

Had anyone managed to normally build grub from sources on Mac OX 10.9
I'm going through Bare Bones tutorial, managed to compile a kernel normally, but just can't figure out where to get
grub-mkrescue, are you supposed to build it? There are not to many information on the net about it either
so I would appreciate any help :)
no92
Member
Member
Posts: 307
Joined: Wed Oct 30, 2013 1:57 pm
Libera.chat IRC: no92
Location: Germany
Contact:

Re: Building grub-mkrescue on OS X Maverics

Post by no92 »

I don't know if it is possible.

You could try to compile GRUB from source. This probably won't work (and you should've tried this before asking).

The way I would do it (and the only other way if you want to generate it by yourself) is to set up a Linux VM and to create a GRUB disk there. After that, you can mount the disk as a loopback device (use hdiutil) and simply copy your grub.cfg (or menu.lst for GRUB legacy) and your kernel over.

Last tip: stop OSdeving on systems without any tools for that (Windows and OS X). Go for Linux or FreeBSD.
hazy
Posts: 2
Joined: Sun Mar 30, 2014 9:57 am

Re: Building grub-mkrescue on OS X Maverics

Post by hazy »

no92 wrote:I don't know if it is possible.

You could try to compile GRUB from source. This probably won't work (and you should've tried this before asking).

The way I would do it (and the only other way if you want to generate it by yourself) is to set up a Linux VM and to create a GRUB disk there. After that, you can mount the disk as a loopback device (use hdiutil) and simply copy your grub.cfg (or menu.lst for GRUB legacy) and your kernel over.

Last tip: stop OSdeving on systems without any tools for that (Windows and OS X). Go for Linux or FreeBSD.
Yes I tried to compile it myself, but seems like a lot of people get into trouble doing it. Thx for your answer
vtsman
Posts: 6
Joined: Sat May 24, 2014 1:47 am
Libera.chat IRC: vtsman

Re: Building grub-mkrescue on OS X Maverics

Post by vtsman »

I've made a script for compiling, committing and making my OS into a bootable iso with GRUB. It's pretty well commented, so just use the parts you need! Best of luck!
build.sh.txt
The forum understandably won't allow me to upload a .sh, hence the .sh.txt
(6.96 KiB) Downloaded 263 times
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Building grub-mkrescue on OS X Maverics

Post by max »

no92 wrote:Last tip: stop OSdeving on systems without any tools for that (Windows and OS X). Go for Linux or FreeBSD.
Please dude. Windows is really not very suitable (yet its possible). But if you're using OS X there is no reason to switch to Linux at all, all the tools are there..

@hazy: have you tried to build it? once you have, either tell us what errors you encountered or about the success/what you did :)
Post Reply