Page MenuHomeFreeBSD

bsdinstall: Add loader.efi to all ESPs we create
ClosedPublic

Authored by imp on Mon, Sep 29, 9:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 27, 11:39 PM
Unknown Object (File)
Sun, Oct 26, 11:20 PM
Unknown Object (File)
Sun, Oct 26, 11:20 PM
Unknown Object (File)
Sun, Oct 26, 11:20 PM
Unknown Object (File)
Sun, Oct 26, 11:20 PM
Unknown Object (File)
Sun, Oct 26, 11:19 PM
Unknown Object (File)
Wed, Oct 22, 1:25 PM
Unknown Object (File)
Sat, Oct 18, 1:58 AM
Subscribers

Details

Summary

Add the proper loader.efi to each of the ESPs we create. zfsboot creates
a list of extra ESPs to populate. For both UFS and ZFS, the first ESP is
mounted and we copy the files over (using the same heuristic for the
platform default file). zfsboot-noted ESPs will get copies as well. We
don't have to do anything for UFS since we don't support installing into
a gmirror, but if we ever do, we can use this mechanism.

Sponsored by: Netflix

Test Plan

This is a rewrite of what was submitted.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Mon, Sep 29, 9:37 AM
imp added reviewers: cperciva, ivy.
imp added inline comments.
usr.sbin/bsdinstall/scripts/zfsboot
1024

This was stray, it seems, from earlier revs.

Minor nits.

usr.sbin/bsdinstall/scripts/auto
182

Isn't this usually spelled : > ${TMPDIR:-"/tmp"}/bsdinstall-esps ?

(In particular, it avoids needing to open /dev/null. I can't imagine a scenario where /dev/ isn't mounted here, but why rely on it?)

usr.sbin/bsdinstall/scripts/bootconfig
149

appends ?

150

don't support installing ?

153

This could just be mktemp -d -t bsdinstall-esp since the use of TMPDIR (if set) or /tmp (otherwise) is implied.

imp edited the test plan for this revision. (Show Details)

update comments, some minor tweaking

This revision is now accepted and ready to land.Mon, Sep 29, 11:31 PM
This revision was automatically updated to reflect the committed changes.