I'm trying to create a NetBSD image to be used on my opennebula cloud, and for its contextualization I need to look for a disk labeled "CONTEXT", in fact it is a cdrom, usually on debian I would look for it on /dev/disk/by-label, but in NetBSD the story seems to be different, and I tried to use disklabel but I have found only the "fictitious" label on the cdrom:
NetBSDImage# disklabel /dev/cd0
disk: iso partition
total sectors: 181
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
4 partitions: # size offset fstype [fsize bsize cpg/sgs] a: 181 0 ISO9660 0 # (Cyl. 0 - 1*) d: 181 0 UDF # (Cyl. 0 - 1*) disklabel: boot block size 0 disklabel: super block size 0 disklabel: partitions a and d overlap
I do not understand how can I do the same on NetBSD, checking if there is any disk named "CONTEXT" to mount it. The plan B is just to mount the cdrom if it is available and check if there is a file called context.sh but I would prefer to do it the right way, by checking the disk name.