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