boot1.efi.8 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .\"
  2. .\" Copyright (c) 2020 Netflix, Inc
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\" notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\" notice, this list of conditions and the following disclaimer in the
  11. .\" documentation and/or other materials provided with the distribution.
  12. .\"
  13. .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  14. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  16. .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  17. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  18. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  19. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  20. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  21. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  22. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. .\" SUCH DAMAGE.
  24. .\"
  25. .Dd April 6, 2021
  26. .Dt BOOT1.EFI 8
  27. .Os
  28. .Sh NAME
  29. .Nm boot1.efi
  30. .Nd UEFI chain loader
  31. .Sh DESCRIPTION
  32. .Nm
  33. has been deprecated and will be removed from a future release.
  34. .Xr loader.efi 8
  35. handles all its former use cases with more flexibility.
  36. .Pp
  37. On UEFI systems,
  38. .Nm
  39. loads
  40. .Pa /boot/loader.efi
  41. from the default root file system and transfers execution there.
  42. Some systems may need to use
  43. .Xr gptboot.efi 8
  44. when
  45. .Xr loader.efi 8
  46. cannot be used directly on the ESP (EFI System Partition).
  47. .Ss Initialization
  48. Before looking for the boot device,
  49. .Nm
  50. does the following initialization
  51. .Bl -bullet
  52. .It
  53. Sets up the console using the default UEFI console routines.
  54. .It
  55. Discovers all possible block devices on the system.
  56. .It
  57. Initializes all file system modules to read files from those devices
  58. .El
  59. .Ss Boot Device Selection
  60. .Nm
  61. uses the following sequence to determine the root file system for
  62. booting:
  63. .Bl -bullet
  64. .It
  65. If ZFS is configured,
  66. .Nm
  67. will search the for zpools that are bootable, preferring the zpool on
  68. the boot device over the others.
  69. .It
  70. If UFS is configured,
  71. .Nm
  72. will search all UFS partitions for a bootable partition.
  73. It will prefer the lowest numbered bootable partition on the boot
  74. device over all other choices.
  75. It will fall back to partitions on other devices if none are found.
  76. .El
  77. .Pp
  78. A partition is considered bootable if it can load
  79. .Pa /boot/loader.efi
  80. from it.
  81. Command line arguments to the next boot stage are
  82. read from the first existing file of
  83. .Pa /boot.config
  84. or
  85. .Pa /boot/config
  86. in that order.
  87. .Ss Caveats
  88. .Bl -bullet
  89. .It
  90. The order in which file systems are tried is undefined.
  91. .It
  92. No encryption support is available.
  93. .It
  94. There's no way to interrupt the boot process to select booting from some
  95. other location.
  96. .It
  97. When configuring a serial console for FreeBSD, but not for UEFI, no output
  98. will show up on the serial console from boot1.efi.
  99. .It
  100. There's no support for marking partitions as the preferred one.
  101. See
  102. .Xr gptboot.efi 8 .
  103. .It
  104. There's no support for boot-once functionality.
  105. See
  106. .Xr gptboot.efi 8 .
  107. .El