PDA

View Full Version : grub-gfxboot - kernel updates


Agrezar
September 1st, 2007, 02:58 PM
Just wanted to steer some people in the right direction if installing

grub-gfxboot_0.97-11_i386.deb

I'm running it and found that if you get a kernel update you end up with an error something like ..

(2.6.20-??.?? was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
[: 25: ==: unexpected operator
exec: 25: -a: not found
User postinst hook script [/sbin/update-grub] exited with value 2

it's because the update-grub script that the gfxboot installs is an sh but supposed to be bash..

sudo gedit /sbin/update-grub

change the #!/bin/sh to #!/bin/bash

sudo apt-get dist-upgrade

.. should work

...on another note, if perhaps your are upgrading kernels lets say kernel 2.6.20.15 --> kernel 2.6.20.16 and update-grub doesn't update your menu.lst (from above problem) you might not be able to boot haveing an error "file not found" ..

benste
February 15th, 2008, 12:53 PM
wanted to delete my post