| Linux-Bootloader documentation | view source | Contained in the Linux-Bootloader distribution. |
Linux::Bootloader::Elilo - Parse and modify ELILO configuration files.
use Linux::Bootloader; use Linux::Bootloader::Elilo; my $bootloader = Linux::Bootloader::Elilo->new(); my $config_file='/etc/elilo.conf'; $bootloader->read($config_file) # add a kernel $bootloader->add(%hash) # remove a kernel $bootloader->remove(2) # set new default $bootloader->set_default(1) $bootloader->write($config_file)
This module provides functions for working with ELILO configuration files.
Adding a kernel: - add kernel at start, end, or any index position. - kernel path and title are required. - root, kernel args, initrd are optional. - any options not specified are copied from default. - remove any conflicting kernels if force is specified. Removing a kernel: - remove by index position - or by title/label
Also see Linux::Bootloader for functions available from the base class.
Creates a new Linux::Bootloader::Elilo object.
Attempts to install bootloader.
Takes: nothing.
Returns: undef on error.
Open Source Development Labs, Engineering Department <eng@osdl.org>
Copyright (C) 2006 Open Source Development Labs All Rights Reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Linux-Bootloader documentation | view source | Contained in the Linux-Bootloader distribution. |