Kernel update does not invoke update-grub in lucid

Bug #491311 reported by Pieter Lexis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Andy Whitcroft

Bug Description

Binary package hint: linux-image-2.6.32-6-generic

What is says in the title.

After updating to a newer kernel grub is not automatically updated by calling update-grub.

Possibly a wrong post installation script, i will try to look at the script, however i've never have looked at the post int script.

ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lieter 4315 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd5200000 irq 22'
   Mixer name : 'Realtek ALC262'
   Components : 'HDA:10ec0262,104d2e00,00100302'
   Controls : 12
   Simple ctrls : 8
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xd0030000 irq 17'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,104d2e00,00100100'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined
   Playback channels: Mono
   Mono: Playback [off]
Date: Wed Dec 2 11:32:45 2009
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=8172b8f2-2c0a-4004-b989-e20ebb36deb4
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: Sony Corporation VGN-FW51JF_H
Package: linux-image-generic 2.6.32.6.6
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-6-generic root=UUID=e6ad859a-ac6e-4286-9f9f-9ad9a0059138 ro quiet splash
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-6.8-generic
Regression: No
RelatedPackageVersions: linux-firmware 1.27
Reproducible: Yes
SourcePackage: linux-meta
Tags: lucid needs-upstream-testing
TestedUpstream: No
Uname: Linux 2.6.32-6-generic x86_64
dmi.bios.date: 09/04/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R4070Y0
dmi.board.asset.tag: N/A
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrR4070Y0:bd09/04/2009:svnSonyCorporation:pnVGN-FW51JF_H:pvrC6023SR8:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
dmi.product.name: VGN-FW51JF_H
dmi.product.version: C6023SR8
dmi.sys.vendor: Sony Corporation

Revision history for this message
Pieter Lexis (pieter-lexis) wrote :
Andy Whitcroft (apw)
tags: added: kernel-lucid
Revision history for this message
Andy Whitcroft (apw) wrote :

@Pieter -- that is unexpected as the post install scripting is unchanged in lucid from that used in karmic. Which version of grub are you using? grub or grub2? dpkg -l | grep grub should tell us. Also can you confirm that just running update-grub fixed things up for you? Finally can you confirm the absolute path to update-grub on your installation. Thanks for testing!

Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
importance: Undecided → Medium
status: New → In Progress
status: In Progress → Incomplete
Revision history for this message
Pieter Lexis (pieter-lexis) wrote :

@Andy

- running update-grub solves this issue.

- I'm running grub2, this is however installed on the partition(/dev/sda6 (hd0,6)) and i chainload it from my karmic grub2 on my MBR(I have 3 distro's+ windows 7. My primary installation(karmic) uses the mbr, the rest is chainloaded(grub on partions), but this should not conflict with the post install script.
  root@lieters-klaptop:/# dpkg -l | grep grub
  ii grub-common 1.97~beta4-1ubuntu4 GRand Unified Bootloader, version 2 (common
  ii grub-pc 1.97~beta4-1ubuntu4 GRand Unified Bootloader, version 2 (PC/BIOS

-update-grub location:
  root@lieters-klaptop:/# which update-grub
  /usr/sbin/update-grub

  root@lieters-klaptop:/# ls -l /usr/sbin/update-grub
  -rwxr-xr-x 1 root root 60 2009-10-29 17:30 /usr/sbin/update-grub

Andy Whitcroft (apw)
tags: removed: kernel-lucid
Revision history for this message
Andy Whitcroft (apw) wrote :

@Pieter -- that should happen automatically. Could you attach the file /etc/kernel-img.conf please. That should be requesting that grub be added there.

Changed in linux (Ubuntu):
status: Incomplete → In Progress
status: In Progress → Incomplete
Revision history for this message
Andy Whitcroft (apw) wrote :

This may be related to bug #470265 if the entries are missing for you.

Revision history for this message
Pieter Lexis (pieter-lexis) wrote :

Interestingly, after the latest update of grub AND the kernel the menu was updated, however, as i removed the older kernels the menu wasn't updated. (contrast to https://bugs.launchpad.net/ubuntu/+source/grub/+bug/470265/comments/35). So it is possible that the problem is fixed either by the grub update or the latest kernel. Or it's just a co-incidence.

Also, the problem is perhaps related to #470265, I however have not updated any install. Also the problem isn't grub most likely, as running the update manually will yield a correct menu and no errors.

Revision history for this message
Andy Whitcroft (apw) wrote :

@Pieter -- that configuration is short two key lines:

    postinst_hook = update-grub
    postrm_hook = update-grub

Without those installation and removal of the kernel will not correctly update grub mostly. I think this is clearly another occurance of bug #470265. Could you update that bug with how your system got from a blank disks to where it is now, what was installed, what upgrades you did etc to get where we are today without those files.

Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

Pieter,

Could you please attach your /var/log/installer/syslog file to this bug, so we can see why this file was not set up for you correctly at install time?

Revision history for this message
Pieter Lexis (pieter-lexis) wrote :

A little late, but here it is.

Also during the latest kernel updates update-grub did not get invoked. An update of grub-pc however did.

Revision history for this message
Pieter Lexis (pieter-lexis) wrote :

Whoops, wrong file. Here is the syslog file.

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.