-
Notifications
You must be signed in to change notification settings - Fork 0
/
grub.cfg
151 lines (135 loc) · 4.99 KB
/
grub.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
#
# DO NOT EDIT THIS FILE!!
#
# It is automatically generated by C:\grub2\grub2win.exe
# using templates from C:\grub2\winsource
# and settings from C:\grub2\windata\customconfigs
# and user section code from C:\grub2\userfiles\usersection.cfg
#
# Created on Samstag 18 Mai 2024 at 20:37:48
#
# Generated by Grub2Win Version 2.4.0.6 Build 1667 from directory C:\grub2
# Gen Stamp 2024 - 0517 - 230410 Build 1667 ** Yesterday **
#
# The grub menu theme is - Basic
# The grub menu font is - Unifont 16 - Automatic
#
# Grub2Win generated 6 menu entries
# Includes GNU Grub version 2.12 The GNU Grub timeout is 30 seconds
#
#
# The current Windows display resolution is 1099x818
# Grub resolution will be set at boot time to 1024x768,auto
# The Grub default boot OS is menu entry 0 - Boot An ISO file
# The Grub locale language is ** Auto ** English The locale code is - en
#
set default=0
set grub2win_chosen='0 - Boot An ISO file'
set grub2win_version=2.4.0.6
set grub2win_langauto=yes
load_env grub2win_reboot
if [ ! $grub2win_reboot = no ] ; then set default=$grub2win_reboot ; set grub2win_reboot=no ; save_env grub2win_reboot ; fi
set timeout=30
set lang=en
set pager=1
set icondir=$prefix/themes/icons
set locale_dir=$prefix/locale
if [ -z $grub2win_funcstatus ] ; then source $prefix/g2bootmgr/gnugrub.functions.cfg ; fi
g2wbits
set grub2win_custmode=EFI
set grub2win_lastbooted=no
set grub2win_efilevel=159
set grub2win_efiuuid=A699-2EF0
set gfxmode=1024x768,auto
set theme=$prefix/themes/custom.config
if [ $grub2win_bootmode = EFI ] ; then set theme=$theme.$grub2win_efibits.efi.txt ; else set theme=$theme.$grub2win_procbits.bios.txt ; fi
export theme
export icondir
set gfxpayload=text
insmod png
insmod all_video
source $prefix/winsource/template.gfxfonts.cfg
load_env grub2win_gfxmode
if [ ! -z $grub2win_gfxmode ] ; then set gfxmode=$grub2win_gfxmode ; fi
insmod gfxterm
terminal_output gfxterm
insmod gfxmenu
# start-grub2win-auto-menu-section ***************************************************
#
#
# Menu Entry For Custom Code 0 Boot An ISO file
#
# ** Grub will boot this entry by default **
#
# Comment 'Boot An ISO file Hotkey=i' --hotkey=i --class isoboot --class icon-isoboot
#
source $prefix/windata/customconfigs/BootAnISOfile.cfg
#
#
# Menu Entry 1 Windows EFI Boot Manager
#
menuentry 'Windows EFI Boot Manager Hotkey=w' --hotkey=w --class windows --class icon-windows {
set reviewpause=5
set pager=0
if [ $grub_platform = efi ]; then
set efibootmgr=/efi/Microsoft/Boot/bootmgfw.efi
getpartition file $efibootmgr root
if [ $? = 0 ] ; then
echo Grub is now loading the Windows EFI Boot Manager
echo Boot disk address is $root
echo The boot mode is Windows EFI
chainloader $efibootmgr
fi
else
if [ -f (hd0,1)/ntldr ]; then
set bootcontrol="XP NTLDR"
set root=(hd0,1)
set bootmodule=microsoft.ntldr.xp.bios
if [ ! -f ($root)/$bootmodule ] ; then set bootmodule=ntldr ; fi
else
set biosbootmgr=/bootmgr
getpartition file $biosbootmgr root
set bootcontrol=BCD
set bootmodule=microsoft.bootmgr.bios
if [ ! -f ($root)/$bootmodule ] ; then set bootmodule=bootmgr ; fi
fi
echo
echo The Windows BIOS boot manager is at address ($root)
echo
echo The Windows boot control type is $bootcontrol
echo
ntldr /$bootmodule
fi
g2wsleep
savelast 1 'Windows EFI Boot Manager'
}
#
# Menu Entry 2 Boot Information and Utilities
#
menuentry 'Boot Information and Utilities Hotkey=b' --hotkey=b --class bootinfo --class icon-bootinfo {
unset reviewpause
g2wbootinfo
}
#
# Menu Entry 3 Shutdown the system
#
menuentry 'Shutdown the system Hotkey=s' --hotkey=s --class shutdown --class icon-shutdown {
unset reviewpause
g2wutil halt
}
#
# Menu Entry 4 Reboot your system
#
menuentry 'Reboot your system Hotkey=r' --hotkey=r --class reboot --class icon-reboot {
unset reviewpause
g2wutil reboot
}
#
# Menu Entry 5 Boot to your EFI firmware
#
menuentry 'Boot to your EFI firmware Hotkey=f' --hotkey=f --class bootfirmware --class icon-bootfirmware {
unset reviewpause
g2wutil fwsetup
}
#
# end-grub2win-auto-menu-section ***************************************************