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

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

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	brd
Differential Revision: https://reviews.freebsd.org/D35309

(cherry picked from commit 7919c76dbd)
This commit is contained in:
Alan Somers 2022-05-24 12:24:12 -06:00
parent fa872a4bf7
commit 9e4047d9d9

View file

@ -853,7 +853,7 @@ zfs_create_diskpart()
# We'll configure the ESP in bootconfig
if [ -z "$efibootpart" ]; then
efibootpart="/dev/$(echo $justaddedpart | cut -f 1 -d ' ')"
efibootpart="/dev/gpt/efiboot$index"
f_dprintf "$funcname: configuring ESP at [%s]" \
"${efibootpart}"