Advertisement
Guest User

Untitled

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