src/release/scripts/doFS.sh rev. 1.6 doesn't consider MDDEVICE variable
(formaly, VNDEVICE). Here is a sample fix to use MDDEVICE variable to
configure md -- trivial, add '-u' option if MDDEVICE is already defined.
-- -
Makoto `MAR' MATSUSHITA
Index: doFS.sh
===================================================================
RCS file: /pub/cvsup/FreeBSD.cvs/src/release/scripts/doFS.sh,v
retrieving revision 1.29
diff -c -r1.29 doFS.sh
*** doFS.sh 2001/01/31 22:58:39 1.29
--- doFS.sh 2001/02/03 23:16:51
***************
*** 37,43 ****
awk 'BEGIN {printf "%c%c", 85, 170}' |\
dd of=${FSIMG} obs=1 seek=510 conv=notrunc 2>/dev/null
! MDDEVICE=`mdconfig -a -t vnode -f ${FSIMG}`
if [ ! -c /dev/${MDDEVICE} ] ; then
if [ -f /dev/MAKEDEV ] ; then
( cd /dev && sh MAKEDEV ${MDDEVICE} )
--- 37,47 ----
awk 'BEGIN {printf "%c%c", 85, 170}' |\
dd of=${FSIMG} obs=1 seek=510 conv=notrunc 2>/dev/null
! if [ "x${MDDEVICE}" != "x" ] ; then
! mdconfig -a -t vnode -f ${FSIMG} -u ${MDDEVICE}
! else
! MDDEVICE=`mdconfig -a -t vnode -f ${FSIMG}`
! fi
if [ ! -c /dev/${MDDEVICE} ] ; then
if [ -f /dev/MAKEDEV ] ; then
( cd /dev && sh MAKEDEV ${MDDEVICE} )
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message