<br><br><div class="gmail_quote">On 11 January 2011 14:30, neo3 matrix <span dir="ltr"><<a href="mailto:neo3matrix@gmail.com">neo3matrix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>So, my question is how can I get the modules list and their load order from initramfs?<br>
If not from initramfs,  is there any other way to get it from a normal running system?<br>This information is critical for me to provide proper drivers and their load order during restoration.<br><br></blockquote><div><br>
I don't think that there is a specific load order: even if you could detect the order in which devices are discovered (and thereby the modules are loaded) there is no guarantee that it will be the same next time it is booted, or if it is the same, that it will be consistent across different machines (even identically configured different machines).<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Can you please give me some guidelines on this front?<font color="#888888"></font></blockquote>
<div><br>I think you need a different approach.  If you look at /etc/fstab on an RHEL6 system you'll see that file systems are either identified by a logical volume name or by a UID  -- this is to get away from needing to know what file system is associated with which device (eg /dev/sda, /dev/sde, etc).  Nothing in the boot sequence cares what the underlying device is called -- you can find out, after booting, that (say) UUID=42005eb1-fc91-4ee4-97f5-b453d3896ff0 is actually /dev/sda1.<br>
<br>You might find the various /dev/disk/* directories useful for identifying disks by something less ephemeral than a device name -- /dev/disk/by-uuid is probably the best one.<br><br>jch<br></div></div>