update-grub fails on custom kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub
Hi,
I am trying to build a custom 2.6.34 kernel on 10.04.1, and I cannot get it to interoperate with the automatic grub updating scripts. I am using grub 1.
When I try to install the make-kpkg'd kernel package (called -unmod here), I get this output:
porterde@
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up linux-image-
Running depmod.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86
User postinst hook script [update-grub] exited with value 20
dpkg: error processing linux-image-
subprocess installed post-installation script returned error exit status 128
Errors were encountered while processing:
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
I spent a fair bit of time searching similar bug reports, and I came up empty handed.
I can work-around the problem by manually running update-grub, but I'd like to be able to automatically update my menu.lst.
Any advice on how to resolve this problem would be much appreciated.
Thanks,
Don
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub 0.97-29ubuntu60
ProcVersionSign
Uname: Linux 2.6.32-24-server x86_64
Architecture: amd64
Date: Tue Sep 21 21:40:29 2010
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
LC_CTYPE=POSIX
SourcePackage: grub
On Wed, Sep 22, 2010 at 03:47:59AM -0000, Don Porter wrote:
> I am trying to build a custom 2.6.34 kernel on 10.04.1, and I cannot get
> it to interoperate with the automatic grub updating scripts. I am using
> grub 1.
>
> When I try to install the make-kpkg'd kernel package (called -unmod
> here), I get this output:
[...]
> User postinst hook script [update-grub] exited with value 20
Can you try this with:
sudo DEBCONF_ DEBUG=developer apt-get -f install