1

How can I find out from which initrd image in /boot/ a RedHat system has been booted from, assuming that there are multiple entries in /etc/grub.conf with the same kernel but different initrd-*.img files? (dmesg doesn't show it and there is no link from /initrd.)

js.
  • 123
  • 1
  • 5

1 Answers1

1

If the entries in your grub.conf are in fact identical then there's really no good way to tell. If the grub.conf entries have slightly different kernel options, you could look at /proc/cmdline to see what options were used to boot the current kernel.

larsks
  • 41,276
  • 13
  • 117
  • 170
  • 1
    The kernel/`init` will also ignore anything that's not a valid option, so feel free to jam comment flags in there for debugging. (Don't leave them there in production.) – jgoldschrafe Feb 14 '11 at 19:39
  • seems that adding a kernel parameter is the most practical solution. – js. Feb 15 '11 at 08:57