]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/man/boot1.efi.8
Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787
[FreeBSD/FreeBSD.git] / stand / man / boot1.efi.8
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 .\" $FreeBSD$
26 .\"
27 .Dd April 6, 2021
28 .Dt BOOT1.EFI 8
29 .Os
30 .Sh NAME
31 .Nm boot1.efi
32 .Nd UEFI chain loader
33 .Sh DESCRIPTION
34 .Nm
35 has been deprecated and will be removed from a future release.
36 .Xr loader.efi 8
37 handles all its former use cases with more flexibility.
38 .Pp
39 On UEFI systems,
40 .Nm
41 loads
42 .Pa /boot/loader.efi
43 from the default root file system and transfers execution there.
44 Some systems may need to use
45 .Xr gptboot.efi 8
46 when
47 .Xr loader.efi 8
48 cannot be used directly on the ESP (EFI System Partition).
49 .Ss Initialization
50 Before looking for the boot device,
51 .Nm
52 does the following initialization
53 .Bl -bullet
54 .It
55 Sets up the console using the default UEFI console routines.
56 .It
57 Discovers all possible block devices on the system.
58 .It
59 Initializes all file system modules to read files from those devices
60 .El
61 .Ss Boot Device Selection
62 .Nm
63 uses the following sequence to determine the root file system for
64 booting:
65 .Bl -bullet
66 .It
67 If ZFS is configured,
68 .Nm
69 will search the for zpools that are bootable, preferring the zpool on
70 the boot device over the others.
71 .It
72 If UFS is configured,
73 .Nm
74 will search all UFS partitions for a bootable partition.
75 It will prefer the lowest numbered bootable partition on the boot
76 device over all other choices.
77 It will fall back to partitions on other devices if none are found.
78 .El
79 .Pp
80 A partition is considered bootable if it can load
81 .Pa /boot/loader.efi
82 from it.
83 Command line arguments to the next boot stage are
84 read from the first existing file of
85 .Pa /boot.config
86 or
87 .Pa /boot/config
88 in that order.
89 .Ss Caveats
90 .Bl -bullet
91 .It
92 The order in which file systems are tried is undefined.
93 .It
94 No encryption support is available.
95 .It
96 There's no way to interrupt the boot process to select booting from some
97 other location.
98 .It
99 When configuring a serial console for FreeBSD, but not for UEFI, no output
100 will show up on the serial console from boot1.efi.
101 .It
102 There's no support for marking partitions as the preferred one.
103 See
104 .Xr gptboot.efi 8 .
105 .It
106 There's no support for boot-once functionality.
107 See
108 .Xr gptboot.efi 8 .
109 .El