You are not logged in.

#1 2014-05-22 18:34:49

ipatch
Member
Registered: 2014-05-14
Posts: 26

How to setup GRUB for dual booting OS X and arch?

So I am reading the wiki, and there is a command I need to run, but for whatever reason I'm getting an error.  The command is,

grub-mkstandalone -o bootx64.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg

and error I'm getting is,

grub-mkstandalone: -C: (PROGRAM ERROR) Option should have been recognized!?

Google searching the error yielded 2 results hmm

Last edited by ipatch (2014-05-22 18:35:32)

Offline

#2 2014-05-22 18:42:33

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: How to setup GRUB for dual booting OS X and arch?

Looks like the -C flag has been deprecated:

claire ~ % grub-mkstandalone --help
Usage: grub-mkstandalone [OPTION...] [OPTION] SOURCE...
Generate a standalone image (containing all modules) in the selected format

      --compress[=no,xz,gz,lzo]   compress GRUB files [optional]
  -d, --directory=DIR        use images and modules under DIR
                             [default=/usr/lib/grub/<platform>]
      --fonts=FONTS          install FONTS [default=unicode]
      --install-modules=MODULES   install only MODULES and their dependencies
                             [default=all]
  -k, --pubkey=FILE          embed FILE as public key for signature checking
      --locale-directory=DIR use translations under DIR
                             [default=/usr/share/locale]
      --locales=LOCALES      install only LOCALES [default=all]
      --modules=MODULES      pre-load specified modules MODULES
      --themes=THEMES        install THEMES [default=starfield]
  -v, --verbose              print verbose messages.
      --core-compress=xz|none|auto
                             choose the compression to use for core image
  -o, --output=FILE          save output in FILE [required]
  -O, --format=FILE          generate an image in FORMAT
                             available formats: i386-coreboot, i386-multiboot,
                             i386-pc, i386-pc-pxe, i386-pc-eltorito, i386-efi,
                             i386-ieee1275, i386-qemu, x86_64-efi, i386-xen,
                             x86_64-xen, mipsel-yeeloong-flash,
                             mipsel-fuloong2f-flash, mipsel-loongson-elf,
                             powerpc-ieee1275, sparc64-ieee1275-raw,
                             sparc64-ieee1275-cdcore, sparc64-ieee1275-aout,
                             ia64-efi, mips-arc, mipsel-arc,
                             mipsel-qemu_mips-elf, mips-qemu_mips-flash,
                             mipsel-qemu_mips-flash, mips-qemu_mips-elf,
                             arm-uboot, arm-efi, arm64-efi
  -?, --help                 give this help list
      --usage                give a short usage message
  -V, --version              print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Graft point syntax (E.g. /boot/grub/grub.cfg=./grub.cfg) is accepted

Report bugs to <bug-grub@gnu.org>.

I couldn't find -C in the man-page either.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-05-22 18:53:17

ipatch
Member
Registered: 2014-05-14
Posts: 26

Re: How to setup GRUB for dual booting OS X and arch?

clfarron4 wrote:

Looks like the -C flag has been deprecated:
I couldn't find -C in the man-page either.

wonderful (>.>)

Offline

#4 2014-05-22 19:25:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,612
Website

Re: How to setup GRUB for dual booting OS X and arch?

On an older mbp, I simply added the following to /etc/grub.d/40_custom and it works with a standard grub efi installation.

menuentry "OSX" --class osx --class darwin --class os {
        insmod hfsplus
        set root=(hd0,0)
        exit
}

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB