Bootloader::Core::LILO(3)

NAME
Bootloader::Core::LILO - LILO library for bootloader configuration

PREFACE
This package is the LILO library of the bootloader configuration

SYNOPSIS
use Bootloader::Core::LILO;

"$obj_ref = Bootloader::Core::LILO->new ();"

"$files_ref = Bootloader::Core::LILO->ListFiles ();"

"$status = Bootloader::Core::LILO->ParseLines (\%files);"

"$files_ref = Bootloader::Core::LILO->CreateLines ();"

"$status = Bootloader::Core::LILO->UpdateBootloader ();"

"$status = Bootloader::Core::LILO->InitializeBootloader ();"

DESCRIPTION

"$obj_ref = Bootloader::Core::LILO->new ();"
    Creates an instance of the Bootloader::Core::LILO class.

"$files_ref = Bootloader::Core::LILO->ListFiles ();"
    Returns the list of the configuration files of the bootloader Returns undef on fail

"$status = Bootloader::Core::LILO->ParseLines (\%files);"
    Parses the contents of all files and stores the settings in the internal structures. As argument, it takes a hash reference, where keys are file names and values are references to lists, each member is one line of the file. Returns undef on fail, defined nonzero value on success.

"$files_ref = Bootloader::Core::LILO->CreateLines ();"
    creates contents of all files from the internal structures. Returns a hash reference in the same format as argument of ParseLines on success, or undef on fail.

"$status = Bootloader::Core::LILO->UpdateBootloader ();"
    Updates the settings in the system. Backs original configuration files up and replaces them with the ones with the '.new' suffix. Also performs operations needed to make the change effect (run '/sbin/lilo'). Returns undef on fail, defined nonzero value on success.

"$status = Bootloader::Core::LILO->InitializeBootloader ();"
    Initializes the firmware to boot the bootloader. Returns undef on fail, defined nonzero value otherwise