It's a kmod and I see that in my code:I don't think nmdm was ever a part of the GENERIC kernel but I haven't checked.
Code:
if ! $(kldstat -qm nmdm); then
kldload nmdm
fi
But again, what is the purpose to have grub and a serial console in this case?