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