]> code.delx.au - refind/blob - refind.conf-sample
Added "1024" as code to not change the mode to the "textmode" token.
[refind] / refind.conf-sample
1 #
2 # refind.conf
3 # Configuration file for the rEFInd boot menu
4 #
5
6 # Timeout in seconds for the main menu screen. Setting the timeout to 0
7 # disables automatic booting (i.e., no timeout).
8 #
9 timeout 20
10
11 # Hide user interface elements for personal preference or to increase
12 # security:
13 # banner - the rEFInd title banner
14 # label - boot option text label in the menu
15 # singleuser - remove the submenu options to boot Mac OS X in single-user
16 # or verbose modes; affects ONLY MacOS X
17 # hwtest - the submenu option to run Apple's hardware test
18 # arrows - scroll arrows on the OS selection tag line
19 # hints - brief command summary in the menu
20 # editor - the options editor (+, F2, or Insert on boot options menu)
21 # all - all of the above
22 # Default is none of these (all elements active)
23 #
24 #hideui singleuser
25 #hideui all
26
27 # Set the name of a subdirectory in which icons are stored. Icons must
28 # have the same names they have in the standard directory. The directory
29 # name is specified relative to the main rEFInd binary's directory. If
30 # an icon can't be found in the specified directory, an attempt is made
31 # to load it from the default directory; thus, you can replace just some
32 # icons in your own directory and rely on the default for others.
33 # Default is "icons".
34 #
35 #icons_dir myicons
36
37 # Use a custom title banner instead of the rEFInd icon and name. The file
38 # path is relative to the directory where refind.efi is located. The color
39 # in the top left corner of the image is used as the background color
40 # for the menu screens. Currently uncompressed BMP images with color
41 # depths of 24, 8, 4 or 1 bits are supported.
42 #
43 #banner hostname.bmp
44
45 # Custom images for the selection background. There is a big one (144 x 144)
46 # for the OS icons, and a small one (64 x 64) for the function icons in the
47 # second row. If only a small image is given, that one is also used for
48 # the big icons by stretching it in the middle. If only a big one is given,
49 # the built-in default will be used for the small icons.
50 #
51 # Like the banner option above, these options take a filename of an
52 # uncompressed BMP image file with a color depth of 24, 8, 4, or 1 bits.
53 #
54 #selection_big selection-big.bmp
55 #selection_small selection-small.bmp
56
57 # Use text mode only. When enabled, this option forces rEFInd into text mode.
58 # Passing this option a "0" value causes graphics mode to be used. Pasing
59 # it no value or any non-0 value causes text mode to be used.
60 # Default is to use graphics mode.
61 #
62 #textonly
63
64 # Set the EFI text mode to be used for textual displays. This option
65 # takes a single digit that refers to a mode number. Mode 0 is normally
66 # 80x25, 1 is sometimes 80x50, and higher numbers are system-specific
67 # modes. Mode 1024 is a special code that tells rEFInd to not set the
68 # text mode; it uses whatever was in use when the program was launched.
69 # If you specify an invalid mode, rEFInd pauses during boot to inform
70 # you of valid modes.
71 # CAUTION: On VirtualBox, and perhaps on some real computers, specifying
72 # a text mode and uncommenting the "textonly" option while NOT specifying
73 # a resolution can result in an unusable display in the booted OS.
74 # Default is 1024 (no change)
75 #
76 #textmode 2
77
78 # Set the screen's video resolution. Pass this option either:
79 # * two values, corresponding to the X and Y resolutions
80 # * one value, corresponding to a GOP (UEFI) video mode
81 # Note that not all resolutions are supported. On UEFI systems, passing
82 # an incorrect value results in a message being shown on the screen to
83 # that effect, along with a list of supported modes. On EFI 1.x systems
84 # (e.g., Macintoshes), setting an incorrect mode silently fails. On both
85 # types of systems, setting an incorrect resolution results in the default
86 # resolution being used. A resolution of 1024x768 usually works, but higher
87 # values often don't.
88 # Default is "0 0" (use the system default resolution, usually 800x600).
89 #
90 #resolution 1024 768
91 #resolution 3
92
93 # Launch specified OSes in graphics mode. By default, rEFInd switches
94 # to text mode and displays basic pre-launch information when launching
95 # all OSes except OS X. Using graphics mode can produce a more seamless
96 # transition, but displays no information, which can make matters
97 # difficult if you must debug a problem. Also, on at least one known
98 # computer, using graphics mode prevents a crash when using the Linux
99 # kernel's EFI stub loader. You can specify an empty list to boot all
100 # OSes in text mode.
101 # Valid options:
102 # osx - Mac OS X
103 # linux - A Linux kernel with EFI stub loader
104 # elilo - The ELILO boot loader
105 # grub - The GRUB (Legacy or 2) boot loader
106 # windows - Microsoft Windows
107 # Default value: osx
108 #
109 #use_graphics_for osx,linux
110
111 # Which non-bootloader tools to show on the tools line, and in what
112 # order to display them:
113 # shell - the EFI shell (requires external program; see rEFInd
114 # documentation for details)
115 # gptsync - the (dangerous) gptsync.efi utility (requires external
116 # program; see rEFInd documentation for details)
117 # apple_recovery - boots the Apple Recovery HD partition, if present
118 # mok_tool - makes available the Machine Owner Key (MOK) maintenance
119 # tool, MokManager.efi, used on Secure Boot systems
120 # about - an "about this program" option
121 # exit - a tag to exit from rEFInd
122 # shutdown - shuts down the computer (a bug causes this to reboot
123 # EFI systems)
124 # reboot - a tag to reboot the computer
125 # Default is shell,apple_recovery,mok_tool,about,shutdown,reboot
126 #
127 #showtools shell, mok_tool, about, reboot, exit
128
129 # Directories in which to search for EFI drivers. These drivers can
130 # provide filesystem support, give access to hard disks on plug-in
131 # controllers, etc. In most cases none are needed, but if you add
132 # EFI drivers and you want rEFInd to automatically load them, you
133 # should specify one or more paths here. rEFInd always scans the
134 # "drivers" and "drivers_{arch}" subdirectories of its own installation
135 # directory (where "{arch}" is your architecture code); this option
136 # specifies ADDITIONAL directories to scan.
137 # Default is to scan no additional directories for EFI drivers
138 #
139 #scan_driver_dirs EFI/tools/drivers,drivers
140
141 # Which types of boot loaders to search, and in what order to display them:
142 # internal - internal EFI disk-based boot loaders
143 # external - external EFI disk-based boot loaders
144 # optical - EFI optical discs (CD, DVD, etc.)
145 # hdbios - BIOS disk-based boot loaders
146 # biosexternal - BIOS external boot loaders (USB, eSATA, etc.)
147 # cd - BIOS optical-disc boot loaders
148 # manual - use stanzas later in this configuration file
149 # Note that the legacy BIOS options require firmware support, which is
150 # not present on all computers.
151 # On UEFI PCs, default is internal,external,optical,manual
152 # On Macs, default is internal,hdbios,external,biosexternal,optical,cd,manual
153 #
154 #scanfor internal,external,optical,manual
155
156 # Delay for the specified number of seconds before scanning disks.
157 # This can help some users who find that some of their disks
158 # (usually external or optical discs) aren't detected initially,
159 # but are detected after pressing Esc.
160 # The default is 0.
161 #
162 #scan_delay 5
163
164 # When scanning volumes for EFI boot loaders, rEFInd always looks for
165 # Mac OS X's and Microsoft Windows' boot loaders in their normal locations,
166 # and scans the root directory and every subdirectory of the /EFI directory
167 # for additional boot loaders, but it doesn't recurse into these directories.
168 # The also_scan_dirs token adds more directories to the scan list.
169 # Directories are specified relative to the volume's root directory. This
170 # option applies to ALL the volumes that rEFInd scans. If a specified
171 # directory doesn't exist, it's ignored (no error condition results).
172 # The default is to scan the "boot" directory in addition to various
173 # hard-coded directories.
174 #
175 #also_scan_dirs boot,EFI/linux/kernels
176
177 # Partitions to omit from scans. You must specify a volume by its
178 # label, which you can obtain in an EFI shell by typing "vol", from
179 # Linux by typing "blkid /dev/{devicename}", or by examining the
180 # disk's label in various OSes' file browsers.
181 # The default is an empty list (all volumes are scanned).
182 #
183 #dont_scan_volumes
184
185 # Directories that should NOT be scanned for boot loaders. By default,
186 # rEFInd doesn't scan its own directory or the EFI/tools directory.
187 # You can "blacklist" additional directories with this option, which
188 # takes a list of directory names as options. You might do this to
189 # keep EFI/boot/bootx64.efi out of the menu if that's a duplicate of
190 # another boot loader or to exclude a directory that holds drivers
191 # or non-bootloader utilities provided by a hardware manufacturer. If
192 # a directory is listed both here and in also_scan_dirs, dont_scan_dirs
193 # takes precedence. Note that this blacklist applies to ALL the
194 # filesystems that rEFInd scans, not just the ESP.
195 #
196 #dont_scan_dirs EFI/boot,EFI/Dell
197
198 # Files that should NOT be included as EFI boot loaders (on the
199 # first line of the display). If you're using a boot loader that
200 # relies on support programs or drivers that are installed alongside
201 # the main binary or if you want to "blacklist" certain loaders by
202 # name rather than location, use this option. Note that this will
203 # NOT prevent certain binaries from showing up in the second-row
204 # set of tools. Most notably, MokManager.efi is in this blacklist,
205 # but will show up as a tool if present in certain directories. You
206 # can control the tools row with the showtools token.
207 # The default is shim.efi,MokManager.efi,TextMode.efi,ebounce.efi,GraphicsConsole.efi
208 #
209 #dont_scan_files shim.efi,MokManager.efi
210
211 # Scan for Linux kernels that lack a ".efi" filename extension. This is
212 # useful for better integration with Linux distributions that provide
213 # kernels with EFI stub loaders but that don't give those kernels filenames
214 # that end in ".efi", particularly if the kernels are stored on a
215 # filesystem that the EFI can read. When uncommented, this option causes
216 # all files in scanned directories with names that begin with "vmlinuz"
217 # or "bzImage" to be included as loaders, even if they lack ".efi"
218 # extensions. The drawback to this option is that it can pick up kernels
219 # that lack EFI stub loader support and other files. Most notably, if you
220 # want to give a kernel a custom icon by placing an icon with the kernel's
221 # filename but a ".icns" extension in the same directory as the kernel, this
222 # option will cause the icon file to show up as a non-functional loader tag.
223 # Passing this option a "0" value causes kernels without ".efi" extensions
224 # to NOT be scanned; passing it alone or with any other value causes all
225 # kernels to be scanned.
226 # Default is to NOT scan for kernels without ".efi" extensions.
227 #
228 scan_all_linux_kernels
229
230 # Set the maximum number of tags that can be displayed on the screen at
231 # any time. If more loaders are discovered than this value, rEFInd shows
232 # a subset in a scrolling list. If this value is set too high for the
233 # screen to handle, it's reduced to the value that the screen can manage.
234 # If this value is set to 0 (the default), it's adjusted to the number
235 # that the screen can handle.
236 #
237 #max_tags 0
238
239 # Set the default menu selection. The available arguments match the
240 # keyboard accelerators available within rEFInd. You may select the
241 # default loader using:
242 # - A digit between 1 and 9, in which case the Nth loader in the menu
243 # will be the default.
244 # - Any substring that corresponds to a portion of the loader's title
245 # (usually the OS's name or boot loader's path).
246 #
247 #default_selection 1
248
249 # Include a secondary configuration file within this one. This secondary
250 # file is loaded as if its options appeared at the point of the "include"
251 # token itself, so if you want to override a setting in the main file,
252 # the secondary file must be referenced AFTER the setting you want to
253 # override. Note that the secondary file may NOT load a tertiary file.
254 #
255 #include manual.conf
256
257 # Sample manual configuration stanzas. Each begins with the "menuentry"
258 # keyword followed by a name that's to appear in the menu (use quotes
259 # if you want the name to contain a space) and an open curly brace
260 # ("{"). Each entry ends with a close curly brace ("}"). Common
261 # keywords within each stanza include:
262 #
263 # volume - identifies the filesystem from which subsequent files
264 # are loaded. You can specify the volume by label or by
265 # a number followed by a colon (as in "0:" for the first
266 # filesystem or "1:" for the second).
267 # loader - identifies the boot loader file
268 # initrd - Specifies an initial RAM disk file
269 # icon - specifies a custom boot loader icon
270 # ostype - OS type code to determine boot options available by
271 # pressing Insert. Valid values are "MacOS", "Linux",
272 # "Windows", and "XOM". Case-sensitive.
273 # graphics - set to "on" to enable graphics-mode boot (useful
274 # mainly for MacOS) or "off" for text-mode boot.
275 # Default is auto-detected from loader filename.
276 # options - sets options to be passed to the boot loader; use
277 # quotes if more than one option should be passed or
278 # if any options use characters that might be changed
279 # by rEFInd parsing procedures (=, /, #, or tab).
280 # disabled - use alone or set to "yes" to disable this entry.
281 #
282 # Note that you can use either DOS/Windows/EFI-style backslashes (\)
283 # or Unix-style forward slashes (/) as directory separators. Either
284 # way, all file references are on the ESP from which rEFInd was
285 # launched.
286 # Use of quotes around parameters causes them to be interpreted as
287 # one keyword, and for parsing of special characters (spaces, =, /,
288 # and #) to be disabled. This is useful mainly with the "options"
289 # keyword. Use of quotes around parameters that specify filenames is
290 # permissible, but you must then use backslashes instead of slashes,
291 # except when you must pass a forward slash to the loader, as when
292 # passing a root= option to a Linux kernel.
293
294 # Below are several sample boot stanzas. All are disabled by default.
295 # Find one similar to what you need, copy it, remove the "disabled" line,
296 # and adjust the entries to suit your needs.
297
298 # A sample entry for a Linux 3.3 kernel with its new EFI boot stub
299 # support on a filesystem called "KERNELS". This entry includes
300 # Linux-specific boot options and specification of an initial RAM disk.
301 # Note uses of Linux-style forward slashes, even in the initrd
302 # specification. Also note that a leading slash is optional in file
303 # specifications.
304 menuentry Linux {
305 icon EFI/refind/icons/os_linux.icns
306 volume KERNELS
307 loader bzImage-3.3.0-rc7
308 initrd initrd-3.3.0.img
309 options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
310 disabled
311 }
312
313 # A sample entry for loading Ubuntu using its standard name for
314 # its GRUB 2 boot loader. Note uses of Linux-style forward slashes
315 menuentry Ubuntu {
316 loader /EFI/ubuntu/grubx64.efi
317 icon /EFI/refined/icons/os_linux.icns
318 disabled
319 }
320
321 # A minimal ELILO entry, which probably offers nothing that
322 # auto-detection can't accomplish.
323 menuentry "ELILO" {
324 loader \EFI\elilo\elilo.efi
325 disabled
326 }
327
328 # Like the ELILO entry, this one offers nothing that auto-detection
329 # can't do; but you might use it if you want to disable auto-detection
330 # but still boot Windows....
331 menuentry "Windows 7" {
332 loader \EFI\Microsoft\Boot\bootmgfw.efi
333 disabled
334 }
335
336 # EFI shells are programs just like boot loaders, and can be
337 # launched in the same way. You can pass a shell the name of a
338 # script that it's to run on the "options" line. The script
339 # could initialize hardware and then launch an OS, or it could
340 # do something entirely different.
341 menuentry "Windows via shell script" {
342 icon \EFI\refind\icons\os_win.icns
343 loader \EFI\tools\shell.efi
344 options "fs0:\EFI\tools\launch_windows.nsh"
345 disabled
346 }
347
348 # Mac OS is normally detected and run automatically; however,
349 # if you want to do something unusual, a manual boot stanza may
350 # be the way to do it. This one does nothing very unusual, but
351 # it may serve as a starting point. Note that you'll almost
352 # certainly need to change the "volume" line for this example
353 # to work.
354 menuentry "My Mac OS X" {
355 icon \EFI\refind\icons\os_mac.icns
356 volume "OS X boot"
357 loader \System\Library\CoreServices\boot.efi
358 disabled
359 }