update-grub is in /usr/sbin, but kernel-img.conf looks for it in /sbin

Bug #78478 reported by pablort
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-2.6.20-5-generic

It's looking for update-grub in /sbin, but it's actually in /usr/sbin

Setting up linux-image-2.6.20-5-generic (2.6.20-5.7) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.20-5-generic
W: mdadm: unchecked configuration file: /etc/mdadm/mdadm.conf
W: mdadm: please read /usr/share/doc/mdadm/README.upgrading-2.5.3.gz .
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
The provided postinst hook script [/sbin/update-grub] could not be run.
dpkg: error processing linux-image-2.6.20-5-generic (--configure):
 subprocess post-installation script returned error exit status 2

Btw, im using grub2 package:

# which update-grub
/usr/sbin/update-grub

# dpkg -S update-grub
grub2: /usr/sbin/update-grub
grub2: /usr/share/man/man8/update-grub.8.gz

DIRTY FIX:

ln -sf /usr/sbin/update-grub /sbin

Revision history for this message
iKs (iks279) wrote :

I seem to have update-grub in both /sbin and /usr/sbin and the 2.6.20-5-generic kernel works fine for me :

iks@max:~$ ls -l /sbin/update-grub
-rwxr-xr-x 1 root root 616 2006-12-20 17:44 /sbin/update-grub
iks@max:~$ ls -l /usr/sbin/update-grub
-rwxr-xr-x 1 root root 35685 2006-12-20 17:44 /usr/sbin/update-grub

iks@max:~$ uname -r
2.6.20-5-generic

I suppose you are using Feisty. Did you upgrade from an Edgy isntall or did you isntall it from scratch ?

Revision history for this message
pablort (pablort) wrote : Re: [Bug 78478] Re: Package: linux-image-2.6.20-5-generic fails to install

upgraded from edgy.

are you using grub2 package ?

On 1/8/07, iKs <email address hidden> wrote:
>
> I seem to have update-grub in both /sbin and /usr/sbin and the
> 2.6.20-5-generic kernel works fine for me :
>
> iks@max:~$ ls -l /sbin/update-grub
> -rwxr-xr-x 1 root root 616 2006-12-20 17:44 /sbin/update-grub
> iks@max:~$ ls -l /usr/sbin/update-grub
> -rwxr-xr-x 1 root root 35685 2006-12-20 17:44 /usr/sbin/update-grub
>
> iks@max:~$ uname -r
> 2.6.20-5-generic
>
> I suppose you are using Feisty. Did you upgrade from an Edgy isntall or
> did you isntall it from scratch ?
>
> --
> Package: linux-image-2.6.20-5-generic fails to install
> https://launchpad.net/bugs/78478
>

Revision history for this message
Ben Collins (ben-collins) wrote : Re: Package: linux-image-2.6.20-5-generic fails to install

1) The kernel does not create, nor provide maint. if the kernel-img.conf file, which is what tells the kernel post-inst to run this hook.
2) Grub2 should be compatible with grub1
3) Grub[12] should continue to provide this compatibility symlink until an automated upgrade for kernel-img.conf to the new location is in place. Users should not have to manually fix this.

Daniel Hahler (blueyed)
Changed in grub2:
status: Unconfirmed → Confirmed
Revision history for this message
Felix Zielcke (fzielcke) wrote :

As I just said in bug #385478, grub-legacy has a wrapper in /sbin/update-grub which tells people that it's deprecated and /usr/sbin/update-grub should be used instead.
Unfortunately it doestn't tell that it's probable /etc/kernel-img.conf which still uses it.
Anyway in current Debian experimental's grub2 we now run sed over it to change it.

Revision history for this message
Felix Zielcke (fzielcke) wrote :

The grub2 version which just edits /etc/kernel-img.conf is now in Ubuntu karmic.

Changed in grub2 (Ubuntu):
status: Confirmed → Fix Released
Matt Zimmerman (mdz)
summary: - Package: linux-image-2.6.20-5-generic fails to install
+ update-grub is in /usr/sbin, but kernel-img.conf looks for it in /sbin
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.