Tigran Aivazian wrote:
>
> if rdev is not there you copy it using cp(1) command.
I didn't explain myself very well. Sorry. I'll try
again...
I'm writing partition program, that needs to find out
if a partition is mounted. Sometimes, /etc/mtab is
not available (eg / is mounted read-only). Therefore,
I should check /proc/mounts first, if it's available.
But /proc/mounts has this /dev/root brain damage. So
I need to find out what /dev/root really is.
I want to allow users to use Parted with chroot, because
this could be useful in a rescue situation.
Obviously, I can't force/recommend users use devfs.
Also, Parted will be run *after* any chroot, so copying
rdev is out of the question.
Anyone have any other suggestions?
Thanks,
Andrew Clausen