diff options
authorDavid Crandall <>2015-04-17 20:23:08 -0500
committerDavid Crandall <>2015-04-17 20:23:08 -0500
commitcd2501d7b22e74e15afc1e2f91604908b067e5fc (patch)
treeb32d3cd9651872b8ea3063426c09a57a08ba2d34 /sys-boot/refind-bin/files/refind.d-gentoo
parentcreated gde profile; added separate systemd profiles for gde and knome (diff)
added refind-bin
Diffstat (limited to 'sys-boot/refind-bin/files/refind.d-gentoo')
1 files changed, 120 insertions, 0 deletions
diff --git a/sys-boot/refind-bin/files/refind.d-gentoo b/sys-boot/refind-bin/files/refind.d-gentoo
new file mode 100644
index 0000000..728c742
--- /dev/null
+++ b/sys-boot/refind-bin/files/refind.d-gentoo
@@ -0,0 +1,120 @@
+# script to install rEFInd
+# Usage:
+# refind-mkconfig
+# This program is copyright (c) 2012 by David P. Crandall
+# It is released under the terms of the GNU GPL, version 3.
+# Revision history:
+# 0.4.5 -- Initial version
+# Note: version numbers match those of the rEFInd package
+# with which this script first appeared.
+# Sample manual configuration stanzas. Each begins with the "menuentry"
+# keyword followed by a name that's to appear in the menu (use quotes
+# if you want the name to contain a space) and an open curly brace
+# ("{"). Each entry ends with a close curly brace ("}"). Common
+# keywords within each stanza include:
+# volume - identifies the filesystem from which subsequent files
+# are loaded. You can specify the volume by label or by
+# a number followed by a colon (as in "0:" for the first
+# filesystem or "1:" for the second).
+# loader - identifies the boot loader file
+# initrd - Specifies an initial RAM disk file
+# icon - specifies a custom boot loader icon
+# ostype - OS type code to determine boot options available by
+# pressing Insert. Valid values are "MacOS", "Linux",
+# "Windows", and "XOM". Case-sensitive.
+# graphics - set to "on" to enable graphics-mode boot (useful
+# mainly for MacOS) or "off" for text-mode boot.
+# Default is auto-detected from loader filename.
+# options - sets options to be passed to the boot loader; use
+# quotes if more than one option should be passed or
+# if any options use characters that might be changed
+# by rEFInd parsing procedures (=, /, #, or tab).
+# disabled - use alone or set to "yes" to disable this entry.
+# Note that you can use either DOS/Windows/EFI-style backslashes (\)
+# or Unix-style forward slashes (/) as directory separators. Either
+# way, all file references are on the ESP from which rEFInd was
+# launched.
+# Use of quotes around parameters causes them to be interpreted as
+# one keyword, and for parsing of special characters (spaces, =, /,
+# and #) to be disabled. This is useful mainly with the "options"
+# keyword. Use of quotes around parameters that specify filenames is
+# permissible, but you must then use backslashes instead of slashes,
+# except when you must pass a forward slash to the loader, as when
+# passing a root= option to a Linux kernel.
+# Below are several sample boot stanzas. All are disabled by default.
+# Find one similar to what you need, copy it, remove the "disabled" line,
+# and adjust the entries to suit your needs.
+# A sample entry for a Linux 3.3 kernel with its new EFI boot stub
+# support on a filesystem called "KERNELS". This entry includes
+# Linux-specific boot options and specification of an initial RAM disk.
+# Note uses of Linux-style forward slashes, even in the initrd
+# specification. Also note that a leading slash is optional in file
+# specifications.
+menuentry "Gentoo ${3}" {
+ icon EFI/refind/icons/os_gentoo.icns
+ ostype Linux
+ volume ESP
+ loader ${0}
+ initrd ${1}/initramfs-genkernel-x86_64-${2}
+ options "domdadm root=LABEL=gentoo"
+menuentry Linux {
+ icon EFI/refind/icons/os_linux.icns
+ volume KERNELS
+ loader bzImage-3.3.0-rc7
+ initrd initrd-3.3.0.img
+ options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
+ disabled
+# A sample entry for loading Ubuntu using its standard name for
+# its GRUB 2 boot loader. Note uses of Linux-style forward slashes
+menuentry Ubuntu {
+ loader /EFI/ubuntu/grubx64.efi
+ icon /EFI/refined/icons/os_linux.icns
+ disabled
+# A minimal ELILO entry, which probably offers nothing that
+# auto-detection can't accomplish.
+menuentry "ELILO" {
+ loader \EFI\elilo\elilo.efi
+ disabled
+# Like the ELILO entry, this one offers nothing that auto-detection
+# can't do; but you might use it if you want to disable auto-detection
+# but still boot Windows....
+menuentry "Windows 7" {
+ loader \EFI\Microsoft\Boot\bootmgfw.efi
+ disabled
+# EFI shells are programs just like boot loaders, and can be
+# launched in the same way. You can pass a shell the name of a
+# script that it's to run on the "options" line. The script
+# could initialize hardware and then launch an OS, or it could
+# do something entirely different.
+menuentry "Windows via shell script" {
+ icon \EFI\refind\icons\os_win.icns
+ loader \EFI\tools\shell.efi
+ options "fs0:\EFI\tools\launch_windows.nsh"
+ disabled
+} \ No newline at end of file