summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/diskless
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-22 09:48:02 +0000
committerphk <phk@FreeBSD.org>2002-09-22 09:48:02 +0000
commitf9ed339e30af8ede557dea2684ba7e1b8696da0c (patch)
treed14fdd9dd21b6634f9136d93715345fb07ca6082 /etc/rc.d/diskless
parent1a1c831c079c1ee94f02ce7436727f9f3c5ff767 (diff)
downloadFreeBSD-src-f9ed339e30af8ede557dea2684ba7e1b8696da0c.zip
FreeBSD-src-f9ed339e30af8ede557dea2684ba7e1b8696da0c.tar.gz
Use mdmfs(8) rather than rolling our own RAM-disks.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'etc/rc.d/diskless')
-rw-r--r--etc/rc.d/diskless5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless
index c5cffb0..6426caf 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.
OpenPOWER on IntegriCloud