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