Re: lilo config is busted, need help fixing it
On Sun, 26 Sep 2010 22:29:34 -0400 (EDT), firstname.lastname@example.org wrote:
> On Sat, 25 Sep 2010 12:28:00 -0400 (EDT), Stephen Powell wrote:
>> Several problems here. S30initramfs, S50symlink_hook,
>> K30initramfs, and K50symlink_hook, though they will still
>> work, I now consider obsolete. S30initramfs and K30initramfs
>> were made obsolete by newer versions of the initramfs-tools
>> package. The initramfs-tools hook scripts appear to be missing.
>> And you have a couple of scripts called initramfs-tools.dpkg-dist.
>> Are they renamed versions of initramfs-tools? Are they the current
>> versions of them? I would erase S30initramfs, K30initramfs,
>> and both copies of initramfs-tools.dpkg-dist, and reinstall
>> the latest version of the initramfs-tools package. This should
>> install a script called initramfs-tools in both /etc/kernel/postinst.d
>> and /etc/kernel/postrm.d.
> All done. I am now running the latest lilo:
> ii lilo
> 1:22.8-8.3 LInux LOader - The Classic OS loader can
> load Linux and others
> Setting up linux-image-2.6.32-5-amd64 (2.6.32-23) ...
> Running depmod.
> Running update-initramfs.
> update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
> Running lilo-update.
> User postinst hook script [lilo-update] failed to execute: No such file
> or directory dpkg: error processing linux-image-2.6.32-5-amd64
> (--configure): subprocess installed post-installation script returned
> error exit status 255 configured to not write apport reports
> Errors were encountered while
> processing: linux-image-2.6.32-5-amd64
> E: Sub-process /usr/bin/dpkg returned an error code (1)
As I indicated in my previous post, you need to remove those last
two lines from /etc/kernel-img.conf, the ones which have "lilo-update"
in them. That will solve the above problem.
>> I also don't see any zz-lilo hook scripts, which the latest version
>> of lilo would have installed. Reinstall the latest version of lilo.
>> This should also install a file in /etc/initramfs/post-update.d called
>> lilo or runlilo, depending on which version of lilo you are running.
>> Then remove S50symlink_hook and K50symlink_hook. Finally, install
>> the two zy-symlinks hook scripts available on my web site, one for
>> /etc/kernel/postinst.d and one for /etc/kernel/postrm.d. Then make
>> sure that
> Yes the zz scripts are there now.
Good. Don't forget the zy-symlinks hook scripts and to delete the
other ones and to install the latest initramfs-tools package, and
to make sure that
do_symlinks = no
is set in /etc/kernel-img.conf.
.''`. Stephen Powell
: :' :