Out of curiosity, Is it possible to find out which bootloader was used to start a given system? Was the system booted by GRUB, Lilo or any other boot loader?I'm guessing there must exist some /sys or /proc variable for the same?EDIT:Boot Info Summary:  => Lilo is installed in the MBR of /dev/sdasda1: _______________________________________________________________File system:       Boot sector type:  UnknownBoot sector info:Mounting failed: mount: unknown filesystem type ''/dev/sda is the only device I have to boot with. I wonder, if there is no known file system on only available single partition then how it manage to boot ?
Find bootloader
linux;boot loader
I don't believe this info is tracked in meaningful way under either /sys or /proc. About the only way I can fathom this would be accessible to you after a boot is by interrogating the system either by looking to see if a GRUB or Lilo configuration file was present, or by making use of a script such as bootinfoscript.Example - check boot deviceIf you know which device your system was booted with you can use dd to dump the contents of the boot loader and then grep for either GRUB or LILO.                      You can use these commands to determine whether you're using GRUB or LILO:$ sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep GRUB$ sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep LILOWhich ever returns this string is the boot loader you're using:Binary file (standard input) matchesExample - using bootinfoscript$ sudo ./bootinfoscript --stdout                  Boot Info Script 0.61      [1 April 2012]============================= Boot Info Summary: =============================== => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of     the same hard drive for core.img, but core.img can not be found at this     location.sda1: __________________________________________________________________________    File system:       ext4    Boot sector type:  -    Boot sector info:     Operating System:      Boot files:        /grub2/grub.cfg    ...Neither of these approaches is conclusive, however, since multiple boot loaders can coexist, but at least it gives you a rough idea of the boot loaders that might be in use.ReferencesHow do I find out which boot loader I have?