Don't mount a md(4) over /dev on DEVFS enabled diskless systems.

This commit is contained in:
Poul-Henning Kamp 2001-05-01 20:13:59 +00:00
parent 9c6a092060
commit 92fa92b327
5 changed files with 45 additions and 25 deletions

View File

@ -69,11 +69,15 @@ fi
# 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 [ ! -h /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
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_md 4096 /dev 3 512

View File

@ -69,11 +69,15 @@ fi
# 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 [ ! -h /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
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_md 4096 /dev 3 512

View File

@ -69,11 +69,15 @@ fi
# 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 [ ! -h /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
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_md 4096 /dev 3 512

View File

@ -69,11 +69,15 @@ fi
# 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 [ ! -h /tmp ]; then
mount_md ${tmpsize:=64m} /tmp 2
chmod 01777 /tmp
fi
if sysctl vfs.devfs.generation > /dev/null 2>&1 ; then
mount_mfs -s 4096 -i 512 -T qp120at dummy /dev
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_md 4096 /dev 3 512

View File

@ -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