Re: nvd -> nda change (breaks geli)?

From: Bjoern A. Zeeb <bzeeb-lists_at_lists.zabbadoz.net>
Date: Mon, 26 Jun 2023 17:13:26 UTC
On Mon, 26 Jun 2023, Warner Losh wrote:

> On Mon, Jun 26, 2023 at 10:01 AM Bjoern A. Zeeb <
> bzeeb-lists@lists.zabbadoz.net> wrote:
>
>> Hi,
>>
>> some laptops had only /dev/nvd* nodes in the past.
>> These now show up as /dev/nda*.
>> Not sure when the symlinks are created for compat.
>>
>> I had to help rescue someone's geli setup manually as there were
>> no keys loaded for nda but only for nvd.  At least loading the key
>> again for nda made things work.  A bit painful remotely ...
>>
>> Should this at least be in UPDATING?
>>
>
> Well, we have this already:
>
> 20230612:

Doh!  I think I looked in the wrong tree.  Sorry.


> Can you send me more details about what failed? It should be a no-op, but I
> am
> aware of one issue with libgeom that I need to fix.

The change was to switch:

geli_nvd0p2_keyfile0_load="YES"
geli_nvd0p2_keyfile0_type="nvd0p2:geli_keyfile0"
geli_nvd0p2_keyfile0_name="/boot/keys/geli.key"

to this:

geli_nda0p2_keyfile0_load="YES"
geli_nda0p2_keyfile0_type="nda0p2:geli_keyfile0"
geli_nda0p2_keyfile0_name="/boot/keys/geli.key"

in loader.conf and things worked again.

Not sure if this is really needed or the right fix but that's as much as
I got remotely.

-- 
Bjoern A. Zeeb                                                     r15:7