There's a cool little tool that I think will help you. Download and install Linux::Bootloader. For example:
#!/usr/local/bin/perl
use strict;
use warnings;
use Linux::Bootloader;
use Linux::Bootloader::Grub;
my $config_file = '/etc/grub.conf';
my $bootloader = Linux::Bootloader::Grub->new($config_file);
$bootloader->debug(3);
$bootloader->read($config_file);
$bootloader->print_info('default');
If you are not sure whether you have Grub or Lilo, then, from the command line, you can run the "boottool":
boottool --bootloader-probe
and it'll tell you exactly which bootloader you are using.
|