diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot index 7efa40ff8d2..14fbdd0d67f 100755 --- a/usr.sbin/bsdinstall/scripts/zfsboot +++ b/usr.sbin/bsdinstall/scripts/zfsboot @@ -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}"