Skip to content

Instantly share code, notes, and snippets.

@drathir
Created May 29, 2021 21:25
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 drathir/bbecbf4584981553c498898fbd647ee0 to your computer and use it in GitHub Desktop.
Save drathir/bbecbf4584981553c498898fbd647ee0 to your computer and use it in GitHub Desktop.
menuentry 'Windows 7 (on /dev/sdaX)' --class windows --class os $menuentry_id_option 'osprober-chain-00UUID00' {
# insmod part_gpt
insmod ntfs
set root='hd0,X'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,X' --hint-bios=hd0,X --hint-efi=hd0,X --hint-baremetal=ahci0,X 00UUID00
else
search --no-floppy --fs-uuid --set=root 00UUID00
fi
chainloader +1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment