Tigran Aivazian writes:
> 
> 
> Richard,
> 
> Using devfs /dev/root is fine to the real original root but not fine
> to find the device of the filesystem which contains the chroot;d
> environment.  But rdev works fine in that case. Try it and see
> (using devfs was the first thing that came to my mind when I thought
> of answering his question but having tried I saw that only rdev
> would give what he wants).

Hm. The chroot(2) call changes the apparent root to a directory. This
isn't necessarily the root of a mounted FS. So /dev/root should stay
as the root filesystem.
To get the apparent root, look at /proc/self/root instead.

                                Regards,

                                        Richard....
Permanent: [EMAIL PROTECTED]
Current:   [EMAIL PROTECTED]

Reply via email to