on one amd64 computer
Somehow mknod will not accept device name, but it can create a fifo
works on a similar amd64 computer w/ same arch. so it was likely
it was something like this that did it:
The screw up,
on an amd64 4.3beta, in an accident, snafu,
I copied the i386 MAKEDEV to /dev and thus ruined /dev when doing MAKEDEV
all because MAKEDEV deleted all then could not make properly...
To fix I booted off a cdrom and did an upgrade, thus fixing /dev
OKAY fine I got all working, never used MAKEDEV or mknod till much
later after may 1st stable...
OKAY used cdrom for "upgrade" to make the computer 4.3 stable.
needed use mknod to make some dev for a chroot, and mknod failed by
name...?
so i went to /dev and out of curiosity did the MAKEDEV all
and FUBAR, it erased /dev/* and could not remake...
So had to reboot with stable cdrom and let it do MAKEDEV
while doing "upgrade"
erasing all of /dev and doing upgrade from cdrom again does not
really fix issue, can't use mknod
----
QUESTION, is openbsd 4.3 doing some kind of policing on mknod?
I googled a situation were SELinux could prevent mknod from working
in that world.?
example on this screwed machine if I change to say, /tmp
cd /tmp
mknod -m 666 zero c 2 12
the result is
ksh: mknod: zero: Invalid argument
and
cd /tmp
/dev/MAKEDEV std
the result is
sh: <stdin>[1]: mknod: console: Invalid argument
sh: <stdin>[1]: mknod: tty: Invalid argument
sh: <stdin>[1]: mknod: mem: Invalid argument
sh: <stdin>[1]: mknod: kmem: Invalid argument
sh: <stdin>[1]: mknod: null: Invalid argument
sh: <stdin>[1]: mknod: zero: Invalid argument
sh: <stdin>[1]: mknod: stdin: Invalid argument
sh: <stdin>[1]: mknod: stdout: Invalid argument
sh: <stdin>[1]: mknod: stderr: Invalid argument
sh: <stdin>[1]: mknod: ksyms: Invalid argument
sh: <stdin>[1]: mknod: drum: Invalid argument
sh: <stdin>[1]: mknod: klog: Invalid argument
sh: <stdin>[1]: mknod: xf86: Invalid argument
chgrp: mem: No such file or directory
chgrp: kmem: No such file or directory
chgrp: ksyms: No such file or directory
chgrp: drum: No such file or directory
chgrp: console: No such file or directory
chgrp: tty: No such file or directory
chgrp: null: No such file or directory
chgrp: zero: No such file or directory
chgrp: stdin: No such file or directory
chgrp: stdout: No such file or directory
chgrp: stderr: No such file or directory
chgrp: klog: No such file or directory
chgrp: xf86: No such file or directory