I've had 'make release' problems on a large/fast dual processor machine

with doFS.sh consistently dying here because the device didn't exist
in the namespace fast enough after doing the mdconfig.  But the device
did eventually show up.  There have been similar complaints on mailing
lists that might boil down to this being the problem too.

This is obviously a hack, if anyone knows what might cause a delay
between mdconfig running and when the name appears in the /dev namespace
(inside a chroot-ed environment if that matters) I'd be happy to back
this out.
This commit is contained in:
Ken Smith 2004-08-06 20:08:38 +00:00
parent 9090f0c261
commit 712ab5d8ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133225

View File

@ -64,6 +64,8 @@ dofs_md () {
fi
MDDEVICE=`mdconfig -a -t vnode -f ${FSIMG}`
# This sleep is needed to solve some sort of race condition
sleep 5
if [ ! -c /dev/${MDDEVICE} ] ; then
echo "No /dev/$MDDEVICE" 1>&2
exit 1