Lines Matching refs:Bootloader
4 Linux::Bootloader - Base class interacting with Linux bootloaders
9 my $bootloader = new Linux::Bootloader();
12 $bootloader->read($config_file);
13 $bootloader->print_info('all');
14 $bootloader->add(%hash);
15 $bootloader->update(%hash);
16 $bootloader->remove(2);
17 $bootloader->get_default();
18 $bootloader->set_default(2);
19 %hash = $bootloader->read_entry(0);
20 $bootloader->write($config_file);
25 This module provides base functions for working with bootloader configuration files.
31 Creates a new Linux::Bootloader object.
115 package Linux::Bootloader;
126 if ( defined $class and $class eq 'Linux::Bootloader' ){
127 my $detected_bootloader = Linux::Bootloader::Detect::detect_bootloader();
129 $class = "Linux::Bootloader::" . "\u$detected_bootloader";
611 # Get a bootloader entry as a hash to edit or update.
707 Bootloader::Grub>, L<Linux::Bootloader::Lilo>,
708 L<Linux::Bootloader::Elilo>, L<Linux::Bootloader::Yaboot>
714 package Linux::Bootloader::Detect;
718 Linux::Bootloader::Detect - detects the bootloader and architecture of the system.
722 Attempts to determine the bootloader by checking for configuration files
730 To attempt to discover the bootloader being used by the system
733 /etc/yaboot.conf and returns the corresponding bootloader name. If
741 bootloader or multiple if more than one was found and undef if none were
831 This function attempts to determine the bootloader being used on the
837 grub grub was determined to be the bootloader in use
838 lilo lilo was determined to be is the bootloader in use
839 elilo elilo was determined to be the bootloader in use
840 yaboot yaboot was determined to be the bootloader in use
841 undef it was impossible to determine which bootloader was being used
843 bootloader on multiple hard disks
861 If called in scalar context and only a single bootloader config file is
862 present it will return the name of that bootloader. Otherwise, if
894 warn "Warning: Multiple bootloader configs; not certain which is in use.\n";
902 Detects the bootloader by scanning the master boot record (MBR) of the
982 L<Linux::Bootloader>
986 package Linux::Bootloader::Elilo;
990 Linux::Bootloader::Elilo - Parse and modify ELILO configuration files.
995 my $bootloader = Linux::Bootloader::Elilo->new();
998 $bootloader->read($config_file)
1001 $bootloader->add(%hash)
1004 $bootloader->remove(2)
1007 $bootloader->set_default(1)
1009 $bootloader->write($config_file)
1030 Also see L<Linux::Bootloader> for functions available from the base class.
1034 Creates a new Linux::Bootloader::Elilo object.
1038 Attempts to install bootloader.
1048 @Linux::Bootloader::Elilo::ISA = qw(Linux::Bootloader);
1049 use base 'Linux::Bootloader';
1064 # Run command to install bootloader
1136 L<Linux::Bootloader>
1141 package Linux::Bootloader::Grub;
1145 Linux::Bootloader::Grub - Parse and modify GRUB configuration files.
1151 $bootloader = Linux::Bootloader::Grub->new($config_file);
1153 $bootloader->read();
1156 $bootloader->add(%hash)
1159 $bootloader->remove(2)
1162 $bootloader->print_info('all')
1165 $bootloader->set_default(1)
1167 $bootloader->write();
1188 Also see L<Linux::Bootloader> for functions available from the base class.
1192 Creates a new Linux::Bootloader::Grub object.
1251 @Linux::Bootloader::Grub::ISA = qw(Linux::Bootloader);
1252 use base 'Linux::Bootloader';
1584 # Run command to install bootloader
1630 my $detected_os_vendor = Linux::Bootloader::Detect::detect_os_vendor();
1707 L<Linux::Bootloader>
1711 package Linux::Bootloader::Lilo;
1715 Linux::Bootloader::Lilo - Parse and modify LILO configuration files.
1720 my $bootloader = Linux::Bootloader::Lilo->new();
1723 $bootloader->read($config_file)
1726 $bootloader->add(%hash)
1729 $bootloader->remove(2)
1732 $bootloader->set_default(1)
1734 $bootloader->write($config_file)
1755 Also see L<Linux::Bootloader> for functions available from the base class.
1759 Creates a new Linux::Bootloader::Lilo object.
1763 Attempts to install bootloader.
1779 @Linux::Bootloader::Lilo::ISA = qw(Linux::Bootloader);
1780 use base 'Linux::Bootloader';
1796 # Run command to install bootloader
1841 L<Linux::Bootloader>
1845 package Linux::Bootloader::Yaboot;
1849 Linux::Bootloader::Yaboot - Parse and modify YABOOT configuration files.
1854 my $bootloader = Linux::Bootloader::Yaboot->new();
1857 $bootloader->read($config_file)
1860 $bootloader->add(%hash)
1863 $bootloader->remove(2)
1866 $bootloader->set_default(1)
1868 $bootloader->write($config_file)
1889 Also see L<Linux::Bootloader> for functions available from the base class.
1893 Creates a new Linux::Bootloader::Yaboot object.
1897 Attempts to install bootloader.
1907 @Linux::Bootloader::Yaboot::ISA = qw(Linux::Bootloader);
1908 use base 'Linux::Bootloader';
1922 # Run command to install bootloader
1934 print("Not installing bootloader.\n");
1962 L<Linux::Bootloader>
1966 package Linux::Bootloader::Zipl;
1970 Linux::Bootloader::Zipl - Parse and modify ZIPL configuration files.
1977 @Linux::Bootloader::Zipl::ISA = qw(Linux::Bootloader);
1978 use base 'Linux::Bootloader';
2392 # Run command to install bootloader
2435 L<Linux::Bootloader>
2450 "bootloader-probe", # Prints the bootloader in use on the system
2452 "bootloader=s",
2487 ### Bootloader / Arch Detection ###
2492 if (defined $params{'bootloader-probe'}) {
2494 $detected_bootloader = Linux::Bootloader::Detect::detect_bootloader()
2495 || warn "Could not detect bootloader\n";
2500 $detected_architecture = Linux::Bootloader::Detect::detect_architecture( $params{'arch-probe'} )
2504 } elsif (defined $params{bootloader}) {
2505 $detected_bootloader = $params{bootloader};
2508 $detected_bootloader = Linux::Bootloader::Detect::detect_bootloader()
2509 || warn "Could not detect bootloader\n";
2515 my $bootloader;
2517 my $class = "Linux::Bootloader::" . "\u$detected_bootloader";
2519 $bootloader = eval "new $class(\$params{config_file});";
2522 die "ERROR: Bootloader $detected_bootloader not recognized!\n";
2528 if (! -r $bootloader->{config_file}) { die "Can't read config file.\n"; }
2531 $bootloader->debug($params{'debug'});
2535 $bootloader->read();
2536 $bootloader->install() unless $detected_bootloader eq 'grub'
2539 $bootloader->read();
2540 $bootloader->add(%params);
2541 $bootloader->write();
2542 $bootloader->install() unless $detected_bootloader eq 'grub';
2545 $bootloader->read();
2546 $bootloader->remove($params{'remove-kernel'});
2547 $bootloader->write();
2548 $bootloader->install() unless $detected_bootloader eq 'grub';
2551 $bootloader->read();
2552 $bootloader->update(%params);
2553 $bootloader->write();
2554 $bootloader->install() unless $detected_bootloader eq 'grub';
2557 $bootloader->read();
2558 $bootloader->print_info($params{info});
2561 $bootloader->read();
2562 $bootloader->set_default($params{'set-default'});
2563 $bootloader->write();
2564 $bootloader->install() unless $detected_bootloader eq 'grub';
2567 $bootloader->read();
2568 print $bootloader->get_default() . "\n";
2572 $bootloader->boot_once($params{title});
2576 $bootloader->read();
2577 $bootloader->set_default($params{'title'});
2578 $bootloader->write();
2588 boottool - tool for modifying bootloader configuration
2592 boottool [--bootloader-probe] [--arch-probe]
2596 [--bootloader=<grub|lilo|elilo|yaboot|zipl>] [--config-file=</path/to/config>]
2604 Boottool allows scripted modification of bootloader configuration files.
2617 =item B<--bootloader>=I<string>
2619 Manually specify the bootloader to use. By default, boottool will
2620 automatically try to detect the bootloader being used.
2624 Specifies the path and name of the bootloader config file, overriding
2636 =item B<--bootloader-probe>
2638 Prints the bootloader in use on the system and exits.
2646 Display information about the bootloader entry at the given position number.
2651 Prints the current default kernel for the bootloader.
2674 This option adds modules to the new kernel. It only works with Grub Bootloader.
2679 Removes the bootloader entry with the given position or title.
2684 Updates the bootloader to set the default boot entry to given given
2689 Causes the bootloader to boot the kernel specified by --title just one
2704 The title or label to use for the bootloader entry.
2717 The initrd image path to use in the bootloader entry.
2729 Insert bootloader entry at the given position number, counting from 0.
2735 Specifies that the bootloader entry being added should be set to the
2740 Causes bootloader to update and re-install the bootloader file.
2770 C<Linux::Bootloader>
2778 boottool works with any bootloader supported by Linux::Bootloader,
2789 Obviously, at least one bootloader must be installed for this to be of