refind-mkdefault(8)


NAME

   refind-mkdefault - Set rEFInd as the default EFI boot option

SYNOPSIS

   refind-mkdefault [ -L|--label <name> ]

DESCRIPTION

   EFI  booting  normally  relies on boot manager entries stored in NVRAM,
   which describe the locations of EFI boot  programs  and  the  order  in
   which the firmware will attempt to launch them. In Linux, these entries
   can be created, deleted, and manipulated with the efibootmgr utility.

   Many OSes and Linux packages assume that they should control  the  boot
   process,  and  so both create NVRAM boot entries for themselves and set
   these entries first in the boot order. If you intend rEFInd to  control
   the  boot  process,  though,  such  changes are undesirable and require
   adjustment via efibootmgr. Such adjustments are annoying  to  make  and
   can be intimidating to non-experts.

   The  refind-mkdefault  script  simplifies  matters: Running this script
   with no options sets rEFInd as the default boot program. The details of
   what  the  script  does  depends on the current state of the boot order
   list and existing boot entries:

   *      If a rEFInd entry already  exists  in  the  boot  order  and  is
          already first in the list, no changes are made.

   *      If  a  rEFInd  entry already exists in the boot order but is not
          first in the list, that entry is moved to the first position  in
          the boot order.

   *      If  more than one rEFInd entry exists in the boot order, refind-
          mkdefault moves the one that comes earliest to the front of  the
          boot order list.

   *      If  no  rEFInd  entry exists in the boot order but a rEFInd boot
          entry can be found in the list of Boot#### entries, it is  added
          to the boot order and placed at the front of the list.

   *      If  multiple  rEFInd  boot entries exist but none is in the boot
          order, all the entries are added to the boot  order,  but  which
          one is first is uncontrolled.

   A rEFInd entry is defined as one that contains the string refind (case-
   insensitive). This string could exist in  the  description  or  in  the
   filename. The string used to define the rEFInd entry can be changed via
   the --label (-L) option.

   The intent is that refind-mkdefault can be  called  after  booting  via
   GRUB or some other means to restore rEFInd as the default boot program.
   It can also be placed in a startup and/or shutdown  script  to  restore
   rEFInd  to  its default position automatically. Because it does not re-
   write the boot order if rEFInd is listed as the first boot entry,  this
   practice should be low in risk.

OPTIONS

   -L | --label <name>
          Instead  of searching for the string refind in efibootmgr output
          as a way to identify rEFInd, search for the string name.

RETURN VALUES

   refind-mkdefault returns the following values:

   0      The script completed successfully, which can mean either that no
          change  was  necessary or that the call to efibootmgr returned a
          success code.

   1      EFI boot order variables are available, and a rEFInd  entry  was
          found, but the call to efibootmgr returned a failure code.

   2      EFI  boot  entries are not available. This condition is often an
          indication of a buggy EFI or badly damaged NVRAM contents.

   3      No rEFInd entry could be found in the list of boot options,  and
          so no changes were made to the boot order list.

   4      The  script could not run because of OS issues -- the OS was not
          Linux, the efibootmgr utility was not available, or  the  script
          was not run as root.

LIMITATIONS

   *      refind-mkdefault   does  not  work  when  booted  in  BIOS  mode
          (including via a Compatibility Support Module,  or  CSM,  on  an
          EFI-based  computer).  Similarly, it does not work if efibootmgr
          is not installed or fails to work for any reason.

   *      The script uses a very simple algorithm  to  determine  what  to
          move  to  the  start  of the boot order list. This algorithm may
          fail if the system has redundant or non-functional  rEFInd  boot
          entries  or  if  those  entries  are  not  named  in an expected
          fashion.  Cleaning  up  the  boot  entries  by  manual  use   of
          efibootmgr may be necessary in such cases.

AUTHORS

   Primary author: Roderick W. Smith (rodsmith@rodsbooks.com)

SEE ALSO

   mvrefind (8), mkrlconf (8), refind-install (8), efibootmgr (8)

   http://www.rodsbooks.com/refind/

AVAILABILITY

   The  refind-mkdefault  command  is  part  of  the rEFInd package and is
   available from Roderick W. Smith.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.