using gpt labels in /etc/fstab

From: Steven Friedrich <freebsdlouisville_at_gmail.com>
Date: Thu, 30 May 2024 05:14:03 UTC
I have installed 14.1rc1 on a usb flash drive.

Here are my labels:

gpart show -l da0
=>      40  60628912  da0  GPT  (29G)
                40    532480    1  efi  (260M)
        5 32520     32768    2  swap  (16M)
      565288  60063664    3  rc1  (29G)
My fstab:

cat /etc/fstab
# Device                                        Mountpoint FStype  
Options Dump    Pass#
gpt/rc1 /               ufs     rw      1       1
gpt/efi /boot/efi       msdosfs rw      1       1

gpt/rc1 mounts during boot.  gpt/efi fails.

I WAS able to mount it manually with:

mount -t msdosfs /dev/gpt/efi /boot/efi

So to boot, I had to modify fstab:

cat /etc/fstab
# Device                                        Mountpoint FStype  
Options Dump    Pass#
gpt/rc1 /               ufs     rw      1       1
/dev/gpt/efi /boot/efi       msdosfs rw      1       1

Very odd that gpt/efi has to be referenced as /dev/gpt/efi.