diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index c5cffb05a0df..6426caf5bdb8 100644 --- a/etc/rc.d/diskless +++ b/etc/rc.d/diskless @@ -49,10 +49,7 @@ mount_md() if [ -n "$4" ]; then bpi="-i $4" fi - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs $bpi /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs $bpi -s $1 -M md$3 $2 } # If there is a global system configuration file, suck it in. diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless index 6e47bb9a2f00..38fab7009ea6 100644 --- a/etc/rc.d/initdiskless +++ b/etc/rc.d/initdiskless @@ -67,10 +67,7 @@ chkerr() mount_md() { - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs -i 4096 /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs -i 4096 -s $1 -M md$3 $2 } # DEBUGGING diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index c5cffb05a0df..6426caf5bdb8 100644 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -49,10 +49,7 @@ mount_md() if [ -n "$4" ]; then bpi="-i $4" fi - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs $bpi /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs $bpi -s $1 -M md$3 $2 } # If there is a global system configuration file, suck it in. diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index c5cffb05a0df..6426caf5bdb8 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -49,10 +49,7 @@ mount_md() if [ -n "$4" ]; then bpi="-i $4" fi - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs $bpi /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs $bpi -s $1 -M md$3 $2 } # If there is a global system configuration file, suck it in. diff --git a/etc/rc.d/var b/etc/rc.d/var index c5cffb05a0df..6426caf5bdb8 100644 --- a/etc/rc.d/var +++ b/etc/rc.d/var @@ -49,10 +49,7 @@ mount_md() if [ -n "$4" ]; then bpi="-i $4" fi - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs $bpi /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs $bpi -s $1 -M md$3 $2 } # If there is a global system configuration file, suck it in. diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless index 6e47bb9a2f00..38fab7009ea6 100644 --- a/etc/rc.initdiskless +++ b/etc/rc.initdiskless @@ -67,10 +67,7 @@ chkerr() mount_md() { - /sbin/mdconfig -a -t malloc -s $1 -u $3 - /sbin/disklabel -r -w md$3 auto - /sbin/newfs -i 4096 /dev/md$3c - /sbin/mount /dev/md$3c $2 + /sbin/mdmfs -i 4096 -s $1 -M md$3 $2 } # DEBUGGING