Skip to content

Instantly share code, notes, and snippets.

@xdqi
Last active January 2, 2023 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xdqi/11b543e1289249b7061286afd1572fd7 to your computer and use it in GitHub Desktop.
Save xdqi/11b543e1289249b7061286afd1572fd7 to your computer and use it in GitHub Desktop.
Compile GRUB mount on macOS
#!/bin/bash -x
# install macfuse from osxfuse.github.io
# brew install autoconf automake objconv
git clone https://git.savannah.gnu.org/git/grub.git
cd grub
./bootstrap
./configure --disable-nls --disable-werror
make || make grub-mount grub-fstest
otool -L grub-mount grub-fstest
# Compiled grub-mount and grub-fstest has dependency of only libSystem and FUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment