]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mount the EFI system partition (ESP) on newly-installed systems.
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>
Tue, 23 Feb 2021 21:16:52 +0000 (16:16 -0500)
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>
Tue, 23 Feb 2021 21:24:21 +0000 (16:24 -0500)
commit0b7472b3d8d2f1e90fade5236b44fd98d8e396c2
treeea0dc9e53f65a44a70e9384e60eba81b2f38d8bd
parentba6e37e47f41484fc61cc034619267b82ddd056c
Mount the EFI system partition (ESP) on newly-installed systems.

Per hier(7), the ESP will be mounted at /boot/efi. On UFS systems,
any existing ESP will be reused and mounted there; otherwise, a new one
will be made. On ZFS systems, space for an ESP is allocated on all disks
in the root pool, but only the partition actually used to boot is set up
and mounted.

This makes future upgrades of the EFI loader easier (upgrade scripts can
just change /boot/efi) and also greatly simplifies the parts of the
installer involved in initialization of the ESP. It also makes the
installer's behavior correspond to the documentation in hier(7).

Reviewed by: imp, tsoome
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D28897
usr.sbin/bsdinstall/partedit/gpart_ops.c
usr.sbin/bsdinstall/partedit/partedit_efi.c
usr.sbin/bsdinstall/partedit/partedit_x86.c
usr.sbin/bsdinstall/scripts/bootconfig
usr.sbin/bsdinstall/scripts/zfsboot