Page MenuHomeFreeBSD

bsdinstall: use gpt/efiboot0 label in /etc/fstab
ClosedPublic

Authored by asomers on May 24 2022, 6:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 30, 1:58 PM
Unknown Object (File)
Fri, Sep 27, 5:32 PM
Unknown Object (File)
Mon, Sep 23, 12:01 AM
Unknown Object (File)
Mon, Sep 23, 12:01 AM
Unknown Object (File)
Mon, Sep 23, 12:01 AM
Unknown Object (File)
Sun, Sep 22, 11:50 PM
Unknown Object (File)
Sun, Sep 15, 9:10 AM
Unknown Object (File)
Sat, Sep 14, 8:08 AM
Subscribers

Details

Summary

Otherwise, boot will hang if the numbering of disks has changed since
initial install.

MFC after: 2 weeks
Sponsored by: Axcient

Test Plan

Ran bsdinstall in a VM

Diff Detail

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

Event Timeline

Thanks for this, I ran into it awhile back and didn't have time to run it down!

This revision is now accepted and ready to land.May 24 2022, 7:01 PM

So long as we don't have two disks with that label, we'll be fine...
So this is better than what we had, but not quite to where we need to get to....
Though the functionality we need to get there isn't in bsdinstall...

In D35309#800308, @imp wrote:

So long as we don't have two disks with that label, we'll be fine...
So this is better than what we had, but not quite to where we need to get to....
Though the functionality we need to get there isn't in bsdinstall...

Well, when using a mirrored setup at least bsdinstall creates a /dev/gpt/efiboot0 and a /dev/gpt/efiboot1. What functionality do you think we need?

In D35309#800308, @imp wrote:

So long as we don't have two disks with that label, we'll be fine...
So this is better than what we had, but not quite to where we need to get to....
Though the functionality we need to get there isn't in bsdinstall...

Well, when using a mirrored setup at least bsdinstall creates a /dev/gpt/efiboot0 and a /dev/gpt/efiboot1. What functionality do you think we need?

We should use the ESP we booted from with /dev/efi/esp.... which is a set of patches that aren't even half-assed yet in my tree...