diff options
author | imp <imp@FreeBSD.org> | 2001-04-25 05:46:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-04-25 05:46:40 +0000 |
commit | fa79914ebab0270b0ddf10d91be058d619e2c088 (patch) | |
tree | fa0eb22c0abbc2cc056385e256defa2df2f7d2c8 /etc/rc.d/tmp | |
parent | 3b8fad2c5973912ad3f2cbc7ac26dc242ab95134 (diff) | |
download | FreeBSD-src-fa79914ebab0270b0ddf10d91be058d619e2c088.zip FreeBSD-src-fa79914ebab0270b0ddf10d91be058d619e2c088.tar.gz |
Move to using md.
o create a simple wrapper function mount_md that makes it easy to
move from mount_mfs.
# NOTE: you will need to MAKEDEV md[0123] in order for this to work.
Reviewed by: bsd, keichii
Diffstat (limited to 'etc/rc.d/tmp')
-rw-r--r-- | etc/rc.d/tmp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 858261d..a19c068 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -29,6 +29,13 @@ # PROVIDE: diskless # REQUIRE: initdiskless mountcritlocal + +# $1 = size +# $2 = mount point + /sbin/newfs /dev/md$3c +# $4 = (optional) bytes-per-inode +mount_md() +{ if [ -n "$4" ]; then bpi="-i $4" fi @@ -39,7 +46,7 @@ } echo "+++ mfs_mount of /var" -mount_mfs -s ${varsize:=65536} -T qp120at dummy /var +mount_md ${varsize:=65536} /var 2 if [ -r /etc/rc.subr ]; then . /etc/rc.subr load_rc_config $name @@ -65,7 +72,7 @@ fi # extract a list of device entries, then copy them to a writable partition (cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp echo "+++ mount_mfs of /dev" -mount_mfs -s 4096 -i 512 -T qp120at dummy /dev +mount_md 4096 /dev 3 (cd /; cpio -i -H newc -d < /tmp/dev.tmp) # extract a list of device entries, then copy them to a writable fs (cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp |