Skip to content

Instantly share code, notes, and snippets.

@yoh2
Created November 8, 2015 08:49
Show Gist options
  • Select an option

  • Save yoh2/7eae0eecc6fb27135c91 to your computer and use it in GitHub Desktop.

Select an option

Save yoh2/7eae0eecc6fb27135c91 to your computer and use it in GitHub Desktop.
UEFIから起動するWindowを起動するためのGRUB2設定。root=(...)はEFI用パーティションを指定。
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry "Windows" --class windows --class os {
set root=(hd0,2)
chainloader '/EFI/Microsoft/Boot/bootmgfw.efi'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment