conf/115751: [PATCH] etc/rc.d/mdconfig (RELENG_6)
Martin Matuska
mm at FreeBSD.org
Thu Aug 23 04:00:14 PDT 2007
>Number: 115751
>Category: conf
>Synopsis: [PATCH] etc/rc.d/mdconfig (RELENG_6)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Aug 23 11:00:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 6.2-STABLE
>Organization:
>Environment:
FreeBSD 6.2-STABLE i386 and amd64
>Description:
RELENG_6 version of etc/rc.d/mdconfig does not properly detect loaded KLD's
>How-To-Repeat:
>Fix:
Index: etc/rc.d/mdconfig
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/mdconfig,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 mdconfig
--- etc/rc.d/mdconfig 21 Aug 2006 15:06:38 -0000 1.3.2.1
+++ etc/rc.d/mdconfig 23 Aug 2007 10:54:12 -0000
@@ -84,7 +84,7 @@
fi
if [ "${_file}" != "${_file%.uzip}" ]; then
# Load geom_uzip kernel module if needed
- kldstat -q -m g_uzip || kldload geom_uzip || err 1 "geom_uzip failed to load."
+ kldstat -q -m g_uzip || kldstat -q -m geom_uzip || kldload geom_uzip || err 1 "geom_uzip failed to load."
_dev="/dev/${_md}.uzip"
fi
for _i in `df ${_file} 2>/dev/null`; do _fs=${_i}; done
@@ -108,7 +108,7 @@
return
fi
- kldstat -q -m g_md || kldload geom_md || err 1 "geom_md failed to load."
+ kldstat -q -m g_md || kldstat -q -m geom_md || kldload geom_md || err 1 "geom_md failed to load."
for _md in ${_mdconfig_list}; do
init_variables ${_md}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list