]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework UEFI ESP generation
authorbcran <bcran@FreeBSD.org>
Thu, 20 Dec 2018 19:39:37 +0000 (19:39 +0000)
committerbcran <bcran@FreeBSD.org>
Thu, 20 Dec 2018 19:39:37 +0000 (19:39 +0000)
commit006825f0e8fd3df950b5ccdc43bea10d57cb2a3d
tree242e3d5aea577a1691fc784b6b35da9690e23d5c
parent6b6de67f5123b6ac05fa7dc5ce07fc438408f31a
Rework UEFI ESP generation

Currently, the installer uses pre-created 800KB FAT12 filesystems that
it dd's onto the ESP partition.
This changeset improves that by having the installer generate a FAT32
filesystem directly onto the ESP using newfs_msdos and then copying
loader.efi into /EFI/freebsd.
For live installs it then runs efibootmgr to add a FreeBSD boot entry
in the BIOS.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D17947
14 files changed:
release/amd64/make-memstick.sh
release/amd64/mkisoimages.sh
release/arm64/make-memstick.sh
release/i386/make-memstick.sh
release/tools/vmimage.subr
share/man/man8/uefi.8
tools/boot/install-boot.sh
tools/boot/rootgen.sh
tools/tools/nanobsd/embedded/common
usr.sbin/bsdinstall/partedit/gpart_ops.c
usr.sbin/bsdinstall/partedit/partedit_arm64.c
usr.sbin/bsdinstall/partedit/partedit_x86.c
usr.sbin/bsdinstall/scripts/bootconfig
usr.sbin/bsdinstall/scripts/zfsboot