sleep 2 seconds after having loaded g_uzip.ko. We need this because

otherwise the /dev/mdX.uzip won't be created immediately, which is
needed because we issue a mount right afterwards.

Approved by:	re@ (bmah@)
MFC after:	2 days
This commit is contained in:
Matteo Riondato 2007-08-25 00:19:17 +00:00
parent 046bcd1bcf
commit 63f45c4bdf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171956

View File

@ -115,6 +115,8 @@ mdconfig_start()
fi fi
if [ "${_file}" != "${_file%.uzip}" ]; then if [ "${_file}" != "${_file%.uzip}" ]; then
load_kld -m g_uzip geom_uzip || return 3 load_kld -m g_uzip geom_uzip || return 3
# sleep a bit to allow creation of /dev/mdX.uzip
sleep 2
fi fi
fi fi
if mdconfig -l -u ${_md} >/dev/null 2>&1; then if mdconfig -l -u ${_md} >/dev/null 2>&1; then