Page MenuHomeFreeBSD

Fix ESP generation when using a gmirror, and when booting from RO medium
ClosedPublic

Authored by bcran on Dec 24 2018, 2:41 AM.
Tags
None
Referenced Files
F110425389: D18645.diff
Tue, Feb 18, 7:19 AM
Unknown Object (File)
Fri, Jan 31, 4:16 AM
Unknown Object (File)
Tue, Jan 21, 12:51 AM
Unknown Object (File)
Sun, Jan 19, 11:37 PM
Unknown Object (File)
Jan 18 2025, 12:34 AM
Unknown Object (File)
Jan 9 2025, 9:36 PM
Unknown Object (File)
Sep 27 2024, 9:25 AM
Unknown Object (File)
Sep 19 2024, 11:03 AM
Subscribers
None

Details

Summary

When using a gmirror, entries in /dev can be removed. So instead of using
kern.disks, get the list of disks from "gpart status -sg" instead.

We assume that any 'efi' partition that can't be mounted as msdosfs should
be used as an ESP. However, the ESP on the CD/DVD can't be mounted read-write
and so was being treated as if unformatted. Try the mount as read-only
instead, to catch cases like this.

Also, add some messages to let users know what the script is doing.

Relnotes: yes
Sponsored by: Netflix

Test Plan

Verified it works in a Qemu VM booting from dvd1.iso

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think this is fine, but I'm not totally sure.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 31 2018, 12:21 AM
This revision was automatically updated to reflect the committed changes.