Skip to content

Instantly share code, notes, and snippets.

@drathir
Created May 29, 2021 21:19
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/fecbd3445ea58d2f03f19bb38b61c1de to your computer and use it in GitHub Desktop.
Save drathir/fecbd3445ea58d2f03f19bb38b61c1de 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,gptX'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gptX' --hint-bios=hd0,gptX --hint-efi=hd0,gptX --hint-baremetal=ahci0,gptX 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