Kernel panic not syncing zfs

Kicking myself for not thinking about this, great catch, I don’t know much about how the system manages these.

It doesn’t look like it overwrites configs, instead using a UUID to create the dataset (though not sure when/how this is generated, if I had to guess, maybe per-install):

root@truenas[~]# midclt call systemdataset.config | jq -r .uuid
cadb1ce96f8c4a01a65be3ef8f5cb996
root@truenas[~]#  
root@truenas[~]# zfs list | grep .system
tank/.system
tank/.system/configs-ae32c386e13840b2bf9c0083275e7941
tank/.system/configs-cadb1ce96f8c4a01a65be3ef8f5cb996

So the previous configs may be present in /var/db/system under a UUID that doesn’t match the new install.