Alternatives to grub-mkrescue on OSX?

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
mango
Posts: 8
Joined: Sun May 25, 2014 6:36 pm

Alternatives to grub-mkrescue on OSX?

Post by mango »

Do any osdevers using OSX know of a replacement for the grub tools for programatically creating disk images for qemu/bochs?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Alternatives to grub-mkrescue on OSX?

Post by Combuster »

The quick and dirty way on any non-linux OS is to grab an existing image from somewhere, clear the owner's files from it, and then save that image with your project so you can use it as a base to construct the rest of your harddisk from it later in a similar fashion.

The advantage of this is that you only need one tool: something that can read and write the filesystem - for FAT systems, mtools is a portable tool that does exactly that.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
vtsman
Posts: 6
Joined: Sat May 24, 2014 1:47 am
Libera.chat IRC: vtsman

Re: Alternatives to grub-mkrescue on OSX?

Post by vtsman »

I made a shell script that compiles my OS and turns it into a bootable iso with GRUB. It's pretty well commented, so just take out the part that is helpful to you! Best of luck!
build.sh.txt
The forum won't allow me to upload a shell script, hence the .sh.txt
(6.96 KiB) Downloaded 256 times
Post Reply