Whoops, modifying the openbsd source files is against the rules.
Statically link /etc/resolv.conf to /var/db/resolv.conf a'la Brian Conway
But do it only if "tardirs=var" is defined, this is the heuristic where we
assume that /etc is normally mounted read-only and /var is the read-write
area. This whole thing is rather messy so print an ugly (resolv.conf) line
when we trigger this situation. If the source files have resolv.conf
then we will copy that into var.tar as well. cfgflashrd will configure the
right resolv.conf too.
Do more error checking in mkdist
One of these failures unchecked could cause flashrd to fail in a way that the fallback harness does not clean up