summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatteo <matteo@FreeBSD.org>2007-08-25 00:19:17 +0000
committermatteo <matteo@FreeBSD.org>2007-08-25 00:19:17 +0000
commitca68d57012f9e4eaac06c4f3791837dac6fe5832 (patch)
tree96109a5204c228589e07a7bd70d90d0a71a90fcf
parent076a7cb9e20b89d6e344acadd6dbe3f102be8e8f (diff)
downloadFreeBSD-src-ca68d57012f9e4eaac06c4f3791837dac6fe5832.zip
FreeBSD-src-ca68d57012f9e4eaac06c4f3791837dac6fe5832.tar.gz
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
-rw-r--r--etc/rc.d/mdconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.d/mdconfig b/etc/rc.d/mdconfig
index 32aba48..372cd7a 100644
--- a/etc/rc.d/mdconfig
+++ b/etc/rc.d/mdconfig
@@ -115,6 +115,8 @@ mdconfig_start()
fi
if [ "${_file}" != "${_file%.uzip}" ]; then
load_kld -m g_uzip geom_uzip || return 3
+ # sleep a bit to allow creation of /dev/mdX.uzip
+ sleep 2
fi
fi
if mdconfig -l -u ${_md} >/dev/null 2>&1; then
OpenPOWER on IntegriCloud