[EMAIL PROTECTED] (Peter Samuelson) wrote on 16.01.02 in <[EMAIL PROTECTED]>:
> [esr] > > The version I just released does exactly that. Well, not exactly; it > > actually looks at fstab -- /proc/mounts gives you '/dev/root' rather > > than a physical device name in the root entry. > > /etc/fstab is hardly guaranteed to be accurate either. The kernel > mounts the root device based on its command line and any pivot_root() > calls you make, not based on /etc/fstab. > > [In practice, I imagine most people don't lie to fstab. The fsck init > script would get annoyed.] Yet lilo still cannot figure out my root device, because instead of /dev/xxx my fstab mentions UUID=xxxxx ... I think right now, the only halfway reasonable thing is to do what ttyname() does: get the devide number off stat(/), and search it in /dev. (Besides, you can figure out part of the answer - about as much as the autoprober does now - from the major anyway.) > But the horse's mouth, in this case, is /proc/sys/kernel/real-root-dev, > a 16-bit decimal int which represents a device number in > MAJOR*256+MINOR format. There *may* also the 'root=' asciiz string in > /proc/cmdline, which will be a 4-digit hex number, but that is not > reliable - because of pivot_root() among other things. That would then seem to be the same as stat(/). Also, there is statfs(/). MfG Kai _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel