Advertisement
Guest User

refind.conf

a guest
Sep 5th, 2018
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.40 KB | None | 0 0
  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). Setting it to -1 causes
  8. # an immediate boot to the default OS *UNLESS* a keypress is in the buffer
  9. # when rEFInd launches, in which case that keypress is interpreted as a
  10. # shortcut key. If no matching shortcut is found, rEFInd displays its
  11. # menu with no timeout.
  12. #
  13. timeout 20
  14.  
  15. # Normally, when the timeout period has passed, rEFInd boots the
  16. # default_selection. If the following option is uncommented, though,
  17. # rEFInd will instead attempt to shut down the computer.
  18. # CAUTION: MANY COMPUTERS WILL INSTEAD HANG OR REBOOT! Macs and more
  19. # recent UEFI-based PCs are most likely to work with this feature.
  20. # Default value is true
  21. #
  22. #shutdown_after_timeout
  23.  
  24. # Whether to store rEFInd's rEFInd-specific variables in NVRAM (1, true,
  25. # or on) or in files in the "vars" subdirectory of rEFInd's directory on
  26. # disk (0, false, or off). Using NVRAM works well with most computers;
  27. # however, it increases wear on the motherboard's NVRAM, and if the EFI
  28. # is buggy or the NVRAM is old and worn out, it may not work at all.
  29. # Storing variables on disk is a viable alternative in such cases, or
  30. # if you want to minimize wear and tear on the NVRAM; however, it won't
  31. # work if rEFInd is stored on a filesystem that's read-only to the EFI
  32. # (such as an HFS+ volume), and it increases the risk of filesystem
  33. # damage. Note that this option affects ONLY rEFInd's own variables,
  34. # such as the PreviousBoot, HiddenTags, HiddenTools, and HiddenLegacy
  35. # variables. It does NOT affect Secure Boot or other non-rEFInd
  36. # variables.
  37. # Default is true
  38. #
  39. #use_nvram false
  40.  
  41. # Screen saver timeout; the screen blanks after the specified number of
  42. # seconds with no keyboard input. The screen returns after most keypresses
  43. # (unfortunately, not including modifier keys such as Shift, Control, Alt,
  44. # or Option). Setting a value of "-1" causes rEFInd to start up with its
  45. # screen saver active. The default is 0, which disables the screen saver.
  46. #
  47. #screensaver 300
  48.  
  49. # Hide user interface elements for personal preference or to increase
  50. # security:
  51. # banner - the rEFInd title banner (built-in or loaded via "banner")
  52. # label - boot option text label in the menu
  53. # singleuser - remove the submenu options to boot macOS in single-user
  54. # or verbose modes; affects ONLY macOS
  55. # safemode - remove the submenu option to boot macOS in "safe mode"
  56. # hwtest - the submenu option to run Apple's hardware test
  57. # arrows - scroll arrows on the OS selection tag line
  58. # hints - brief command summary in the menu
  59. # editor - the options editor (+, F2, or Insert on boot options menu)
  60. # badges - device-type badges for boot options
  61. # all - all of the above
  62. # Default is none of these (all elements active)
  63. #
  64. #hideui singleuser
  65. #hideui all
  66.  
  67. # Set the name of a subdirectory in which icons are stored. Icons must
  68. # have the same names they have in the standard directory. The directory
  69. # name is specified relative to the main rEFInd binary's directory. If
  70. # an icon can't be found in the specified directory, an attempt is made
  71. # to load it from the default directory; thus, you can replace just some
  72. # icons in your own directory and rely on the default for others.
  73. # Icon files may be in any supported format -- ICNS (*.icns), BMP (*.bmp),
  74. # PNG (*.png), or JPEG (*.jpg or *.jpeg); however, rEFInd's BMP and JPEG
  75. # implementations do not support transparency, which is highly desirable
  76. # in icons.
  77. # Default is "icons".
  78. #
  79. #icons_dir myicons
  80. #icons_dir icons/snowy
  81.  
  82. # Use a custom title banner instead of the rEFInd icon and name. The file
  83. # path is relative to the directory where refind.efi is located. The color
  84. # in the top left corner of the image is used as the background color
  85. # for the menu screens. Currently uncompressed BMP images with color
  86. # depths of 24, 8, 4 or 1 bits are supported, as well as PNG and JPEG
  87. # images. (ICNS images can also be used, but ICNS has limitations that
  88. # make it a poor choice for this purpose.) PNG and JPEG support is
  89. # limited by the underlying libraries; some files, like progressive JPEGs,
  90. # will not work.
  91. #
  92. #banner hostname.bmp
  93. #banner mybanner.jpg
  94. #banner icons/snowy/banner-snowy.png
  95.  
  96. # Specify how to handle banners that aren't exactly the same as the screen
  97. # size:
  98. # noscale - Crop if too big, show with border if too small
  99. # fillscreen - Fill the screen
  100. # Default is noscale
  101. #
  102. #banner_scale fillscreen
  103.  
  104. # Icon sizes. All icons are square, so just one value is specified. The
  105. # big icons are used for OS selectors in the first row and the small
  106. # icons are used for tools on the second row. Drive-type badges are 1/4
  107. # the size of the big icons. Legal values are 32 and above. If the icon
  108. # files do not hold icons of the proper size, the icons are scaled to
  109. # the specified size. The default values are 48 and 128 for small and
  110. # big icons, respectively.
  111. #
  112. #small_icon_size 96
  113. #big_icon_size 256
  114.  
  115. # Custom images for the selection background. There is a big one (144 x 144)
  116. # for the OS icons, and a small one (64 x 64) for the function icons in the
  117. # second row. If only a small image is given, that one is also used for
  118. # the big icons by stretching it in the middle. If only a big one is given,
  119. # the built-in default will be used for the small icons. If an image other
  120. # than the optimal size is specified, it will be scaled in a way that may
  121. # be ugly.
  122. #
  123. # Like the banner option above, these options take a filename of an
  124. # uncompressed BMP, PNG, JPEG, or ICNS image file with a color depth of
  125. # 24, 8, 4, or 1 bits. The PNG or ICNS format is required if you need
  126. # transparency support (to let you "see through" to a full-screen banner).
  127. #
  128. #selection_big selection-big.bmp
  129. #selection_small selection-small.bmp
  130.  
  131. # Set the font to be used for all textual displays in graphics mode.
  132. # For best results, the font must be a PNG file with alpha channel
  133. # transparency. It must contain ASCII characters 32-126 (space through
  134. # tilde), inclusive, plus a glyph to be displayed in place of characters
  135. # outside of this range, for a total of 96 glyphs. Only monospaced fonts
  136. # are supported. Fonts may be of any size, although large fonts can
  137. # produce display irregularities.
  138. # The default is rEFInd's built-in font, Luxi Mono Regular 12 point.
  139. #
  140. #font myfont.png
  141.  
  142. # Use text mode only. When enabled, this option forces rEFInd into text mode.
  143. # Passing this option a "0" value causes graphics mode to be used. Pasing
  144. # it no value or any non-0 value causes text mode to be used.
  145. # Default is to use graphics mode.
  146. #
  147. #textonly
  148.  
  149. # Set the EFI text mode to be used for textual displays. This option
  150. # takes a single digit that refers to a mode number. Mode 0 is normally
  151. # 80x25, 1 is sometimes 80x50, and higher numbers are system-specific
  152. # modes. Mode 1024 is a special code that tells rEFInd to not set the
  153. # text mode; it uses whatever was in use when the program was launched.
  154. # If you specify an invalid mode, rEFInd pauses during boot to inform
  155. # you of valid modes.
  156. # CAUTION: On VirtualBox, and perhaps on some real computers, specifying
  157. # a text mode and uncommenting the "textonly" option while NOT specifying
  158. # a resolution can result in an unusable display in the booted OS.
  159. # Default is 1024 (no change)
  160. #
  161. #textmode 2
  162.  
  163. # Set the screen's video resolution. Pass this option either:
  164. # * two values, corresponding to the X and Y resolutions
  165. # * one value, corresponding to a GOP (UEFI) video mode
  166. # Note that not all resolutions are supported. On UEFI systems, passing
  167. # an incorrect value results in a message being shown on the screen to
  168. # that effect, along with a list of supported modes. On EFI 1.x systems
  169. # (e.g., Macintoshes), setting an incorrect mode silently fails. On both
  170. # types of systems, setting an incorrect resolution results in the default
  171. # resolution being used. A resolution of 1024x768 usually works, but higher
  172. # values often don't.
  173. # Default is "0 0" (use the system default resolution, usually 800x600).
  174. #
  175. #resolution 1024 768
  176. #resolution 1440 900
  177. #resolution 3
  178.  
  179. # Enable touch screen support. If active, this feature enables use of
  180. # touch screen controls (as on tablets). Note, however, that not all
  181. # tablets' EFIs provide the necessary underlying support, so this
  182. # feature may not work for you. If it does work, you should be able
  183. # to launch an OS or tool by touching it. In a submenu, touching
  184. # anywhere launches the currently-selection item; there is, at present,
  185. # no way to select a specific submenu item. This feature is mutually
  186. # exclusive with the enable_mouse feature. If both are uncommented,
  187. # the one read most recently takes precedence.
  188. #
  189. #enable_touch
  190.  
  191. # Enable mouse support. If active, this feature enables use of the
  192. # computer's mouse. Note, however, that not all computers' EFIs
  193. # provide the necessary underlying support, so this feature may not
  194. # work for you. If it does work, you should be able to launch an
  195. # OS or tool by clicking it with the mouse pointer. This feature
  196. # is mutually exclusive with the enable_touch feature. If both
  197. # are uncommented, the one read most recently takes precedence.
  198. #
  199. #enable_mouse
  200.  
  201. # Size of the mouse pointer, in pixels, per side.
  202. # Default is 16
  203. #
  204. #mouse_size
  205.  
  206. # Speed of mouse tracking. Higher numbers equate to faster
  207. # mouse movement. This option requires that enable_mouse be
  208. # uncommented.
  209. # Legal values are between 1 and 32. Default is 4.
  210. #
  211. #mouse_speed 4
  212.  
  213. # Launch specified OSes in graphics mode. By default, rEFInd switches
  214. # to text mode and displays basic pre-launch information when launching
  215. # all OSes except macOS. Using graphics mode can produce a more seamless
  216. # transition, but displays no information, which can make matters
  217. # difficult if you must debug a problem. Also, on at least one known
  218. # computer, using graphics mode prevents a crash when using the Linux
  219. # kernel's EFI stub loader. You can specify an empty list to boot all
  220. # OSes in text mode.
  221. # Valid options:
  222. # osx - macOS
  223. # linux - A Linux kernel with EFI stub loader
  224. # elilo - The ELILO boot loader
  225. # grub - The GRUB (Legacy or 2) boot loader
  226. # windows - Microsoft Windows
  227. # Default value: osx
  228. #
  229. #use_graphics_for osx,linux
  230.  
  231. # Which non-bootloader tools to show on the tools line, and in what
  232. # order to display them:
  233. # shell - the EFI shell (requires external program; see rEFInd
  234. # documentation for details)
  235. # memtest - the memtest86 program, in EFI/tools, EFI/memtest86,
  236. # EFI/memtest, EFI/tools/memtest86, or EFI/tools/memtest
  237. # gptsync - the (dangerous) gptsync.efi utility (requires external
  238. # program; see rEFInd documentation for details)
  239. # gdisk - the gdisk partitioning program
  240. # apple_recovery - boots the Apple Recovery HD partition, if present
  241. # windows_recovery - boots an OEM Windows recovery tool, if present
  242. # (see also the windows_recovery_files option)
  243. # mok_tool - makes available the Machine Owner Key (MOK) maintenance
  244. # tool, MokManager.efi, used on Secure Boot systems
  245. # csr_rotate - adjusts Apple System Integrity Protection (SIP)
  246. # policy. Requires "csr_values" to be set.
  247. # about - an "about this program" option
  248. # hidden_tags - manage hidden tags
  249. # exit - a tag to exit from rEFInd
  250. # shutdown - shuts down the computer (a bug causes this to reboot
  251. # many UEFI systems)
  252. # reboot - a tag to reboot the computer
  253. # firmware - a tag to reboot the computer into the firmware's
  254. # user interface (ignored on older computers)
  255. # fwupdate - a tag to update the firmware; launches the fwupx64.efi
  256. # (or similar) program
  257. # netboot - launch the ipxe.efi tool for network (PXE) booting
  258. # Default is shell,memtest,gdisk,apple_recovery,windows_recovery,mok_tool,about,hidden_tags,shutdown,reboot,firmware,fwupdate
  259. #
  260. #showtools shell, gdisk, memtest, mok_tool, apple_recovery, windows_recovery, about, hidden_tags, reboot, exit, firmware, fwupdate
  261.  
  262. # Tool binaries to be excluded from the tools line, even if the
  263. # general class is specified in showtools. This enables trimming an
  264. # overabundance of tools, as when you see multiple mok_tool entries
  265. # after installing multiple Linux distributions.
  266. # Just as with dont_scan_files, you can specify a filename alone, a
  267. # full pathname, or a volume identifier (filesystem label, partition
  268. # name, or partition GUID) and a full pathname.
  269. # Default is an empty list (nothing is excluded)
  270. #
  271. #dont_scan_tools ESP2:/EFI/ubuntu/mmx64.efi,gptsync_x64.efi
  272.  
  273. # Boot loaders that can launch a Windows restore or emergency system.
  274. # These tend to be OEM-specific.
  275. # Default is LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi
  276. #
  277. #windows_recovery_files LRS_ESP:/EFI/Microsoft/Boot/LrsBootmgr.efi
  278.  
  279. # Directories in which to search for EFI drivers. These drivers can
  280. # provide filesystem support, give access to hard disks on plug-in
  281. # controllers, etc. In most cases none are needed, but if you add
  282. # EFI drivers and you want rEFInd to automatically load them, you
  283. # should specify one or more paths here. rEFInd always scans the
  284. # "drivers" and "drivers_{arch}" subdirectories of its own installation
  285. # directory (where "{arch}" is your architecture code); this option
  286. # specifies ADDITIONAL directories to scan.
  287. # Default is to scan no additional directories for EFI drivers
  288. #
  289. #scan_driver_dirs EFI/tools/drivers,drivers
  290.  
  291. # Which types of boot loaders to search, and in what order to display them:
  292. # internal - internal EFI disk-based boot loaders
  293. # external - external EFI disk-based boot loaders
  294. # optical - EFI optical discs (CD, DVD, etc.)
  295. # netboot - EFI network (PXE) boot options
  296. # hdbios - BIOS disk-based boot loaders
  297. # biosexternal - BIOS external boot loaders (USB, eSATA, etc.)
  298. # cd - BIOS optical-disc boot loaders
  299. # manual - use stanzas later in this configuration file
  300. # Note that the legacy BIOS options require firmware support, which is
  301. # not present on all computers.
  302. # The netboot option is experimental and relies on the ipxe.efi and
  303. # ipxe_discover.efi program files.
  304. # On UEFI PCs, default is internal,external,optical,manual
  305. # On Macs, default is internal,hdbios,external,biosexternal,optical,cd,manual
  306. #
  307. #scanfor internal,external,optical,manual
  308.  
  309. # By default, rEFInd relies on the UEFI firmware to detect BIOS-mode boot
  310. # devices. This sometimes doesn't detect all the available devices, though.
  311. # For these cases, uefi_deep_legacy_scan results in a forced scan and
  312. # modification of NVRAM variables on each boot. Adding "0", "off", or
  313. # "false" resets to the default value. This token has no effect on Macs or
  314. # when no BIOS-mode options are set via scanfor.
  315. # Default is unset (or "uefi_deep_legacy_scan false")
  316. #
  317. #uefi_deep_legacy_scan
  318.  
  319. # Delay for the specified number of seconds before scanning disks.
  320. # This can help some users who find that some of their disks
  321. # (usually external or optical discs) aren't detected initially,
  322. # but are detected after pressing Esc.
  323. # The default is 0.
  324. #
  325. #scan_delay 5
  326.  
  327. # When scanning volumes for EFI boot loaders, rEFInd always looks for
  328. # macOS's and Microsoft Windows' boot loaders in their normal locations,
  329. # and scans the root directory and every subdirectory of the /EFI directory
  330. # for additional boot loaders, but it doesn't recurse into these directories.
  331. # The also_scan_dirs token adds more directories to the scan list.
  332. # Directories are specified relative to the volume's root directory. This
  333. # option applies to ALL the volumes that rEFInd scans UNLESS you include
  334. # a volume name and colon before the directory name, as in "myvol:/somedir"
  335. # to scan the somedir directory only on the filesystem named myvol. If a
  336. # specified directory doesn't exist, it's ignored (no error condition
  337. # results). The default is to scan the "boot" directory in addition to
  338. # various hard-coded directories.
  339. #
  340. #also_scan_dirs boot,ESP2:EFI/linux/kernels
  341.  
  342. # Partitions (or whole disks, for legacy-mode boots) to omit from scans.
  343. # For EFI-mode scans, you normally specify a volume by its label, which you
  344. # can obtain in an EFI shell by typing "vol", from Linux by typing
  345. # "blkid /dev/{devicename}", or by examining the disk's label in various
  346. # OSes' file browsers. It's also possible to identify a partition by its
  347. # unique GUID (aka its "PARTUUID" in Linux parlance). (Note that this is
  348. # NOT the partition TYPE CODE GUID.) This identifier can be obtained via
  349. # "blkid" in Linux or "diskutil info {partition-id}" in macOS.
  350. # For legacy-mode scans, you can specify any subset of the boot loader
  351. # description shown when you highlight the option in rEFInd.
  352. # The default is "LRS_ESP".
  353. #
  354. #dont_scan_volumes "Recovery HD"
  355.  
  356. # Directories that should NOT be scanned for boot loaders. By default,
  357. # rEFInd doesn't scan its own directory, the EFI/tools directory, the
  358. # EFI/memtest directory, the EFI/memtest86 directory, or the
  359. # com.apple.recovery.boot directory. Using the dont_scan_dirs option
  360. # enables you to "blacklist" other directories; but be sure to use "+"
  361. # as the first element if you want to continue blacklisting existing
  362. # directories. You might use this token to keep EFI/boot/bootx64.efi out
  363. # of the menu if that's a duplicate of another boot loader or to exclude
  364. # a directory that holds drivers or non-bootloader utilities provided by
  365. # a hardware manufacturer. If a directory is listed both here and in
  366. # also_scan_dirs, dont_scan_dirs takes precedence. Note that this
  367. # blacklist applies to ALL the filesystems that rEFInd scans, not just
  368. # the ESP, unless you precede the directory name by a filesystem name or
  369. # partition unique GUID, as in "myvol:EFI/somedir" to exclude EFI/somedir
  370. # from the scan on the myvol volume but not on other volumes.
  371. #
  372. #dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86
  373.  
  374. # Files that should NOT be included as EFI boot loaders (on the
  375. # first line of the display). If you're using a boot loader that
  376. # relies on support programs or drivers that are installed alongside
  377. # the main binary or if you want to "blacklist" certain loaders by
  378. # name rather than location, use this option. Note that this will
  379. # NOT prevent certain binaries from showing up in the second-row
  380. # set of tools. Most notably, various Secure Boot and recovery
  381. # tools are present in this list, but may appear as second-row
  382. # items.
  383. # The file may be specified as a bare name (e.g., "notme.efi"), as
  384. # a complete pathname (e.g., "/EFI/somedir/notme.efi"), or as a
  385. # complete pathname with volume (e.g., "SOMEDISK:/EFI/somedir/notme.efi"
  386. # or 2C17D5ED-850D-4F76-BA31-47A561740082:/EFI/somedir/notme.efi").
  387. # OS tags hidden via the Delete or '-' key in the rEFInd menu are
  388. # added to this list, but stored in NVRAM.
  389. # The default is shim.efi,shim-fedora.efi,shimx64.efi,PreLoader.efi,
  390. # TextMode.efi,ebounce.efi,GraphicsConsole.efi,MokManager.efi,HashTool.efi,
  391. # HashTool-signed.efi,bootmgr.efi,fb{arch}.efi
  392. # (where "{arch}" is the architecture code, like "x64").
  393. #
  394. #dont_scan_files shim.efi,MokManager.efi
  395.  
  396. # Scan for Linux kernels that lack a ".efi" filename extension. This is
  397. # useful for better integration with Linux distributions that provide
  398. # kernels with EFI stub loaders but that don't give those kernels filenames
  399. # that end in ".efi", particularly if the kernels are stored on a
  400. # filesystem that the EFI can read. When set to "1", "true", or "on", this
  401. # option causes all files in scanned directories with names that begin with
  402. # "vmlinuz" or "bzImage" to be included as loaders, even if they lack ".efi"
  403. # extensions. Passing this option a "0", "false", or "off" value causes
  404. # kernels without ".efi" extensions to NOT be scanned.
  405. # Default is "true" -- to scan for kernels without ".efi" extensions.
  406. #
  407. #scan_all_linux_kernels false
  408.  
  409. # Combine all Linux kernels in a given directory into a single entry.
  410. # When so set, the kernel with the most recent time stamp will be launched
  411. # by default, and its filename will appear in the entry's description.
  412. # To launch other kernels, the user must press F2 or Insert; alternate
  413. # kernels then appear as options on the sub-menu.
  414. # Default is "true" -- kernels are "folded" into a single menu entry.
  415. #
  416. #fold_linux_kernels false
  417.  
  418. # Comma-delimited list of strings to treat as if they were numbers for the
  419. # purpose of kernel version number detection. These strings are matched on a
  420. # first-found basis; that is, if you want to treat both "linux-lts" and
  421. # "linux" as version strings, they MUST be specified as "linux-lts,linux",
  422. # since if you specify it the other way, both vmlinuz-linux and
  423. # vmlinuz-linux-lts will return with "linux" as the "version string," which
  424. # is not what you'd want. Also, if the kernel or initrd file includes both a
  425. # specified string and digits, the "version string" includes both. For
  426. # instance, "vmlinuz-linux-4.8" would yield a version string of "linux-4.8".
  427. # This option is intended for Arch and other distributions that don't include
  428. # version numbers in their kernel filenames, but may provide other uniquely
  429. # identifying strings for multiple kernels. If this feature causes problems
  430. # (say, if your kernel filename includes "linux" but the initrd filename
  431. # doesn't), be sure this is set to an empty string
  432. # (extra_kernel_version_strings "") or comment out the option to disable it.
  433. # Default is no extra version strings
  434. #
  435. #extra_kernel_version_strings linux-lts,linux
  436.  
  437. # Set the maximum number of tags that can be displayed on the screen at
  438. # any time. If more loaders are discovered than this value, rEFInd shows
  439. # a subset in a scrolling list. If this value is set too high for the
  440. # screen to handle, it's reduced to the value that the screen can manage.
  441. # If this value is set to 0 (the default), it's adjusted to the number
  442. # that the screen can handle.
  443. #
  444. #max_tags 0
  445.  
  446. # Set the default menu selection. The available arguments match the
  447. # keyboard accelerators available within rEFInd. You may select the
  448. # default loader using:
  449. # - A digit between 1 and 9, in which case the Nth loader in the menu
  450. # will be the default.
  451. # - A "+" symbol at the start of the string, which refers to the most
  452. # recently booted loader.
  453. # - Any substring that corresponds to a portion of the loader's title
  454. # (usually the OS's name, boot loader's path, or a volume or
  455. # filesystem title).
  456. # You may also specify multiple selectors by separating them with commas
  457. # and enclosing the list in quotes. (The "+" option is only meaningful in
  458. # this context.)
  459. # If you follow the selector(s) with two times, in 24-hour format, the
  460. # default will apply only between those times. The times are in the
  461. # motherboard's time standard, whether that's UTC or local time, so if
  462. # you use UTC, you'll need to adjust this from local time manually.
  463. # Times may span midnight as in "23:30 00:30", which applies to 11:30 PM
  464. # to 12:30 AM. You may specify multiple default_selection lines, in which
  465. # case the last one to match takes precedence. Thus, you can set a main
  466. # option without a time followed by one or more that include times to
  467. # set different defaults for different times of day.
  468. # The default behavior is to boot the previously-booted OS.
  469. #
  470. #default_selection 1
  471. #default_selection Microsoft
  472. #default_selection "+,bzImage,vmlinuz"
  473. #default_selection Maintenance 23:30 2:00
  474. #default_selection "Maintenance,macOS" 1:00 2:30
  475.  
  476. # Enable VMX bit and lock the CPU MSR if unlocked.
  477. # On some Intel Apple computers, the firmware does not lock the MSR 0x3A.
  478. # The symptom on Windows is Hyper-V not working even if the CPU
  479. # meets the minimum requirements (HW assisted virtualization and SLAT)
  480. # DO NOT SET THIS EXCEPT ON INTEL CPUs THAT SUPPORT VMX! See
  481. # http://www.thomas-krenn.com/en/wiki/Activating_the_Intel_VT_Virtualization_Feature!
  482. # for more on this subject.
  483. # The default is false: Don't try to enable and lock the MSR.
  484. #
  485. #enable_and_lock_vmx false
  486.  
  487. # Tell a Mac's EFI that macOS is about to be launched, even when it's not.
  488. # This option causes some Macs to initialize their hardware differently than
  489. # when a third-party OS is launched normally. In some cases (particularly on
  490. # Macs with multiple video cards), using this option can cause hardware to
  491. # work that would not otherwise work. On the other hand, using this option
  492. # when it is not necessary can cause hardware (such as keyboards and mice) to
  493. # become inaccessible. Therefore, you should not enable this option if your
  494. # non-Apple OSes work correctly; enable it only if you have problems with
  495. # some hardware devices. When needed, a value of "10.9" usually works, but
  496. # you can experiment with other values. This feature has no effect on
  497. # non-Apple computers.
  498. # The default is inactive (no macOS spoofing is done).
  499. #
  500. #spoof_osx_version 10.9
  501.  
  502. # Set the CSR values for Apple's System Integrity Protection (SIP) feature.
  503. # Values are one-byte (two-character) hexadecimal numbers. These values
  504. # define which specific security features are enabled. Below are the codes
  505. # for what the values mean. Add them up (in hexadecimal!) to set new values.
  506. # Apple's "csrutil enable" and "csrutil disable" commands set values of 10
  507. # and 77, respectively.
  508. # CSR_ALLOW_UNTRUSTED_KEXTS 0x01
  509. # CSR_ALLOW_UNRESTRICTED_FS 0x02
  510. # CSR_ALLOW_TASK_FOR_PID 0x04
  511. # CSR_ALLOW_KERNEL_DEBUGGER 0x08
  512. # CSR_ALLOW_APPLE_INTERNAL 0x10
  513. # CSR_ALLOW_UNRESTRICTED_DTRACE 0x20
  514. # CSR_ALLOW_UNRESTRICTED_NVRAM 0x40
  515. #
  516. #csr_values 10,77
  517.  
  518. # Include a secondary configuration file within this one. This secondary
  519. # file is loaded as if its options appeared at the point of the "include"
  520. # token itself, so if you want to override a setting in the main file,
  521. # the secondary file must be referenced AFTER the setting you want to
  522. # override. Note that the secondary file may NOT load a tertiary file.
  523. #
  524. #include manual.conf
  525.  
  526. # Sample manual configuration stanzas. Each begins with the "menuentry"
  527. # keyword followed by a name that's to appear in the menu (use quotes
  528. # if you want the name to contain a space) and an open curly brace
  529. # ("{"). Each entry ends with a close curly brace ("}"). Common
  530. # keywords within each stanza include:
  531. #
  532. # volume - identifies the filesystem from which subsequent files
  533. # are loaded. You can specify the volume by filesystem
  534. # label, by partition label, or by partition GUID number
  535. # (but NOT yet by filesystem UUID number).
  536. # loader - identifies the boot loader file
  537. # initrd - Specifies an initial RAM disk file
  538. # icon - specifies a custom boot loader icon
  539. # ostype - OS type code to determine boot options available by
  540. # pressing Insert. Valid values are "MacOS", "Linux",
  541. # "Windows", and "XOM". Case-sensitive.
  542. # graphics - set to "on" to enable graphics-mode boot (useful
  543. # mainly for MacOS) or "off" for text-mode boot.
  544. # Default is auto-detected from loader filename.
  545. # options - sets options to be passed to the boot loader; use
  546. # quotes if more than one option should be passed or
  547. # if any options use characters that might be changed
  548. # by rEFInd parsing procedures (=, /, #, or tab).
  549. # disabled - use alone or set to "yes" to disable this entry.
  550. #
  551. # Note that you can use either DOS/Windows/EFI-style backslashes (\)
  552. # or Unix-style forward slashes (/) as directory separators. Either
  553. # way, all file references are on the ESP from which rEFInd was
  554. # launched.
  555. # Use of quotes around parameters causes them to be interpreted as
  556. # one keyword, and for parsing of special characters (spaces, =, /,
  557. # and #) to be disabled. This is useful mainly with the "options"
  558. # keyword. Use of quotes around parameters that specify filenames is
  559. # permissible, but you must then use backslashes instead of slashes,
  560. # except when you must pass a forward slash to the loader, as when
  561. # passing a root= option to a Linux kernel.
  562.  
  563. # Below are several sample boot stanzas. All are disabled by default.
  564. # Find one similar to what you need, copy it, remove the "disabled" line,
  565. # and adjust the entries to suit your needs.
  566.  
  567. # A sample entry for a Linux 3.13 kernel with EFI boot stub support
  568. # on a partition with a GUID of 904404F8-B481-440C-A1E3-11A5A954E601.
  569. # This entry includes Linux-specific boot options and specification
  570. # of an initial RAM disk. Note uses of Linux-style forward slashes.
  571. # Also note that a leading slash is optional in file specifications.
  572. menuentry Linux {
  573. icon EFI/refind/icons/os_linux.png
  574. volume 904404F8-B481-440C-A1E3-11A5A954E601
  575. loader bzImage-3.3.0-rc7
  576. initrd initrd-3.3.0.img
  577. options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
  578. disabled
  579. }
  580.  
  581. # Below is a more complex Linux example, specifically for Arch Linux.
  582. # This example MUST be modified for your specific installation; if nothing
  583. # else, the PARTUUID code must be changed for your disk. Because Arch Linux
  584. # does not include version numbers in its kernel and initrd filenames, you
  585. # may need to use manual boot stanzas when using fallback initrds or
  586. # multiple kernels with Arch. This example is modified from one in the Arch
  587. # wiki page on rEFInd (https://wiki.archlinux.org/index.php/rEFInd).
  588. menuentry "Arch Linux" {
  589. icon /EFI/refind/icons/os_arch.png
  590. volume "Arch Linux"
  591. loader /boot/vmlinuz-linux
  592. initrd /boot/initramfs-linux.img
  593. options "root=PARTUUID=5028fa50-0079-4c40-b240-abfaf28693ea rw add_efi_memmap"
  594. submenuentry "Boot using fallback initramfs" {
  595. initrd /boot/initramfs-linux-fallback.img
  596. }
  597. submenuentry "Boot to terminal" {
  598. add_options "systemd.unit=multi-user.target"
  599. }
  600. disabled
  601. }
  602.  
  603. # A sample entry for loading Ubuntu using its standard name for
  604. # its GRUB 2 boot loader. Note uses of Linux-style forward slashes
  605. menuentry Ubuntu {
  606. loader /EFI/ubuntu/grubx64.efi
  607. icon /EFI/refind/icons/os_linux.png
  608. disabled
  609. }
  610.  
  611. # A minimal ELILO entry, which probably offers nothing that
  612. # auto-detection can't accomplish.
  613. menuentry "ELILO" {
  614. loader \EFI\elilo\elilo.efi
  615. disabled
  616. }
  617.  
  618. # Like the ELILO entry, this one offers nothing that auto-detection
  619. # can't do; but you might use it if you want to disable auto-detection
  620. # but still boot Windows....
  621. menuentry "Windows 7" {
  622. loader \EFI\Microsoft\Boot\bootmgfw.efi
  623. disabled
  624. }
  625.  
  626. # EFI shells are programs just like boot loaders, and can be
  627. # launched in the same way. You can pass a shell the name of a
  628. # script that it's to run on the "options" line. The script
  629. # could initialize hardware and then launch an OS, or it could
  630. # do something entirely different.
  631. menuentry "Windows via shell script" {
  632. icon \EFI\refind\icons\os_win.png
  633. loader \EFI\tools\shell.efi
  634. options "fs0:\EFI\tools\launch_windows.nsh"
  635. disabled
  636. }
  637.  
  638. # Mac OS is normally detected and run automatically; however,
  639. # if you want to do something unusual, a manual boot stanza may
  640. # be the way to do it. This one does nothing very unusual, but
  641. # it may serve as a starting point. Note that you'll almost
  642. # certainly need to change the "volume" line for this example
  643. # to work.
  644. menuentry "My macOS" {
  645. icon \EFI\refind\icons\os_mac.png
  646. volume "macOS boot"
  647. loader \System\Library\CoreServices\boot.efi
  648. disabled
  649. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement