[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: configuring lilo on package installation



You can normalize the image name by prefixing with something like "vmlinuz-"
and the run liloconfig that updates lilo.conf with the images found.

If you, for instance, call the image "vmlinuz-poweroff", liloconfig will
add the following:

image=/boot/vmlinuz-poweroff
        label=poweroff
        read-only

You can take a look at the get_images function on /usr/sbin/liloconfig
(line 248 in the current version).

You can, obviously, customize this script.

Tobias Grimm <listaccount@e-tobi.net> writes:

> Hi!
>
> I'm working on a nvram-wakeup package for a Debian based VDR
> distribution (c't vdr). nvram-wakeup needs a special kernel-image, that
> forces a shutdown on the next reboot. Normally this image is installed
> to /boot and a new section has to be added to lilo.conf:
>
> image  = /boot/bzImage.poweroff
> label  = PowerOff
>
> It wouldn't be a problem to modify the lilo.conf in the maintainer
> script, but I'm not sure if this is the way this should be done.
>
> What's the best way to add a section to the lilo.conf during package
> installation (and remove it when uninstalling)?
>
> Thanks,
>
> Tobias
>
>
> -- 
> To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

-- 
Andres Roldan

Fluidsignal Group	<aroldan@fluidsignal.com>
The Debian Project	<aroldan@debian.org>
GIGAX			<aroldan@gigax.org>
GPG Key-ID		0xB29396EB	
Home Page		http://people.fluidsignal.com/~aroldan

Attachment: pgpVkuFWSqrOP.pgp
Description: PGP signature


Reply to: