From 712ab5d8ff43440524fa3204b2391bf2b5bbc7da Mon Sep 17 00:00:00 2001 From: Ken Smith Date: Fri, 6 Aug 2004 20:08:38 +0000 Subject: [PATCH] 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. --- release/scripts/doFS.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh index b61c7edf4b75..e70dcb919cbb 100644 --- a/release/scripts/doFS.sh +++ b/release/scripts/doFS.sh @@ -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