With a little side of applesauce...

Sunday, January 28, 2007

Debian - update-grub changing locations

I ran into this little tidbit today, when running update-grub:

Your /etc/kernel-img.conf needs upgrade. Read grub's NEWS.Debian[1]
file and follow its instructions.

1. /usr/share/doc/grub/NEWS.Debian

You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!

Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz
Found kernel: /vmlinuz-2.6.16-2-em64t-p4
Updating /boot/grub/menu.lst ... done

NEWS.Debian contains:

grub (0.97-16) unstable; urgency=low

grub-install and update-grub has change location.

There's a wrapper available in /sbin to keep backward compatibility but
it'll be remove once Etch is release as stable. You _must_ edit your
/etc/kernel-img.conf and remove the full paths from it. For example:

,----[ /etc/kernel-img.conf ]
| ...
| postinst_hook = /sbin/update-grub
| postrm_hook = /sbin/update-grub

Should be change to:

,----[ /etc/kernel-img.conf ]
| ...
| postinst_hook = /usr/sbin/update-grub
| postrm_hook = /usr/sbin/update-grub

-- Otavio Salvador Thu, 14 Sep 2006 23:25:36 -0300

Thanks, Otavio! It’s the simple things that make Debian a great distribution :)

No comments: