aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.diskless2
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-05-01 20:13:59 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-05-01 20:13:59 +0000
commit92fa92b327ee066f35d673fc71d4130265986295 (patch)
tree3c018f2dff55fe6c92317ff7e1145cbdc2853a30 /etc/rc.diskless2
parent9c6a092060a52c979e476349e9232459aaa7b91d (diff)
Notes
Diffstat (limited to 'etc/rc.diskless2')
-rw-r--r--etc/rc.diskless214
1 files changed, 9 insertions, 5 deletions
diff --git a/etc/rc.diskless2 b/etc/rc.diskless2
index 043b72f867bc..189d5e36c7e5 100644
--- a/etc/rc.diskless2
+++ b/etc/rc.diskless2
@@ -69,8 +69,12 @@ mount -a # chown and chgrp are in /usr
# mount_null /var/tmp /tmp
#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_md 4096 /dev 3
-(cd /; cpio -i -H newc -d < /tmp/dev.tmp)
+if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
+ # we have DEVFS, no worries...
+ true
+else
+ # extract a list of device entries, then copy them to a writable fs
+ (cd /; find -x dev | cpio -o -H newc) > /tmp/dev.tmp
+ mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
+ (cd /; cpio -i -H newc -d < /tmp/dev.tmp)
+fi