Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dynamically created /dev/null is a regular file
On Wednesday 24 Jun 2015 16:43:17 Brook Milligan wrote:
> I have been installing some -current systems (cvs from 201505311600Z to be
> exact) that dynamically construct /dev when booting. This seems to be the
> default behavior of rc when /dev is effectively empty. The problem is that
> /dev/null routinely ends up being a regular file not a device file. How
> and when are the device files created and why is null created wrongly?
> Could it have been created somehow before the rest of the devices are
> created dynamically?
>
> Is this related to kern/33023?
My recent ERLITE install suffers from this as well.
The following script in rc.local helps, although it truly is the large hammer
approach
Roy
if [ -c /dev/null ]; then
echo "/dev/null does not need fixing!"
else
echo "Fixing /dev/null"
while true; do
[ -c /dev/null ] && break
rm /dev/null
(cd /dev && ./MAKEDEV std)
done
fi
Home |
Main Index |
Thread Index |
Old Index