Skip to content

Instantly share code, notes, and snippets.

@Dotz0cat
Created July 16, 2019 02:29
Show Gist options
  • Save Dotz0cat/295ce257a53007e9bd774b35468500f8 to your computer and use it in GitHub Desktop.
Save Dotz0cat/295ce257a53007e9bd774b35468500f8 to your computer and use it in GitHub Desktop.
#!/bin/sh
exec tail -n +3 $0
menuentry 'Arch Linux MAC MODE' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8b6bf880-0dce-44dd-bc05-c74f50fa6196' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd2,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275/(null)/sas/disk@0,msdos1' --hint-bios=hd2,msdos1 --hint-efi=hd2,msdos1 --hint-baremetal=ahci2,msdos1 8b6bf880-0d>
else
search --no-floppy --fs-uuid --set=root 8b6bf880-0dce-44dd-bc05-c74f50fa6196
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=8b6bf880-0dce-44dd-bc05-c74f50fa6196 rw audit=0 loglevel=3 quiet systemd.unit=mac.target
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment