aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/scripts
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2022-05-24 18:24:12 +0000
committerAlan Somers <asomers@FreeBSD.org>2022-05-24 19:17:10 +0000
commit7919c76dbdd20161247d1bfb647110d87ca5ee0f (patch)
tree3899001862ae2760010ff064cec8008f3c991e94 /usr.sbin/bsdinstall/scripts
parentb7b40e4a38d8521a40494d868d0870dfb9d6d77d (diff)
downloadsrc-7919c76dbdd20161247d1bfb647110d87ca5ee0f.tar.gz
src-7919c76dbdd20161247d1bfb647110d87ca5ee0f.zip
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
Diffstat (limited to 'usr.sbin/bsdinstall/scripts')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/zfsboot2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot
index 56af9eccd78b..a98cf4a33f28 100755
--- a/usr.sbin/bsdinstall/scripts/zfsboot
+++ b/usr.sbin/bsdinstall/scripts/zfsboot
@@ -868,7 +868,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}"