Match OpenBSD 5.6
rc.conf is no longer executable in OpenBSD 5.6
Merge branch 'master' of github.com:yellowman/flashrd
Dynamically allocate vnds. Mostly from p0lar@dot1q.net who unfortunately has dropped off the face of the email.
Stash calls to /etc/rc.flashrd.conf directly into /etc/rc (for OpenBSD 5.6)

/etc/rc.conf.local is no longer a shell script and cannot call /etc/rc.flashrd.conf for us!

So, move from that dirty hack to another. If you have a better way to do this, i'm all ears baby!
In-memory directories need to be mounted before netstart runs (like /var)
to match old behavior where it was done at the top of netstart...

Move flashrd to version 1.7 while we're here
Get rid if this idea that rc.flashrd.conf should run _twice_ during
/etc/rc. In fact, it never should have, this was just an artifact of
how rc.conf was called. Only run it once, and undocument why we expect
it to run twice.
fix pre-caffeine commit
Copy /var/db/host.random in place during boot up for the tardirs=var case, and re-seed it on shutdown (or image copy/creation) just like /etc/random.seed

This replicates /etc/rc behavior that is not easy for read-only systems (this is just as was done for /etc/random.seed)
getavailvnd depends on flashrd.sub, not rc.flashrd.sub. tested by tim howe :)
link /etc/resolv.conf to /var/db/resolv.conf on a permanent basis
done under the assumption that most systems are read-only /etc by default, while /var is tmpfs or rw
Brian Conway wrote this, I poopoo'ed it, but now I am re-considering it...
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