[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mount_mfs
Hi
I am working on an embedded OpenBSD. During the tests, a
strange error occurred. In the rc-script I use the following
code to mount /dev as a mfs (/ is ro. /tmp is a symlink to
/var/tmp, which is also a mfs):
(cd /; find -x dev | cpio -o) > /tmp/dev.tmp
echo "mount_mfs of /dev"
mount_mfs -s 4096 -i 512 swap /dev
(cd /; cpio -i -d < /tmp/dev.tmp)
In some cases (~20% of the time), when cpio starts extracting,
/dev is not yet mounted. To a later time during the execution
of rc, /dev is mounted mfs, obviously not containing the dev-entries
and therefore leaving the system in a unusable state.
OpenBSD version is 2.9
Can someone tell me why this happens?
thanks
Stefan