annoying prompt from legacy-grub-ec2 on kernel installation

Bug #640685 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: cloud-init

I thought I had gotten all of these. I tested kernel installation today on
us-east-1 ami-c2d722ab ebs/ubuntu-maverick-daily-i386-server-20100916.1

with:
$ dpkg -S /boot/vmlinuz-2.6.35-21-virtual
linux-image-2.6.35-21-virtual: /boot/vmlinuz-2.6.35-21-virtual
$ wget http://launchpadlibrarian.net/55721259/linux-image-2.6.35-22-virtual_2.6.35-22.32_i386.deb
$ sudo dpkg -i linux-image-2.6.35-22-virtual_2.6.35-22.32_i386.deb

The result is that I'm prompted from /usr/sbin/update-grub-legacy-ec2 asking me what to do about differences in /boot/grub/menu.lst . The differences were the addition of the -22 kernel.

I have not been able to reproduce this prompt by subsequently doing:
$ sudo dpkg --purge remove linux-image-2.6.35-22-virtual
$ dpkg -i linux-image-2.6.35-22-virtual_2.6.35-22.32_i386.deb

on removal update-grub-legacy-ec2 is called and removes the -22 kernel from the list, and then on installation it is added again, this time with no confusing prompt.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: grub-legacy-ec2 0.5.15-0ubuntu2
ProcVersionSignature: User Name 2.6.35-22.32-virtual 2.6.35.4
Uname: Linux 2.6.35-22-virtual i686
Architecture: i386
Date: Thu Sep 16 17:51:22 2010
Ec2AMI: ami-c2d722ab
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-east-1c
Ec2InstanceType: t1.micro
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Marking this 'High' as initial 'apt-get update' (possibly from cloud-init) could hit this and go the wrong way.

Changed in cloud-init (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

on launch of a fresh instance, i ran 'sudo update-grub-legacy-ec2' and then installed the kernel, and saw no prompts.

I must need something done in the image post-processing, and likely its a result of me adding 'console=hvc0' under bug 606373.

Revision history for this message
Scott Moser (smoser) wrote :

I believe this will be fixed in the next builds. Anything 20100918 or greater.
To test, just launch instance, ssh in, wget kernel other than the one you have (or, identical to the one you have, but this bug was only found if it was different), and dpkg -i <kernel>.deb

Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

Just verified on 20100920 image by installing a different versioned kernel with dpkg.

I used:
wget http://kernel.ubuntu.com/~jj/linux-image-2.6.35-20-virtual_2.6.35-20.30~EBSPerf_i386.deb

dpkg -i linux-image-2.6.35-20-virtual_2.6.35-20.30~EBSPerf_i386.deb

Output showed:
$ sudo dpkg -i linux-image-2.6.35-20-virtual_2.6.35-20.30~EBSPerf_i386.deb
Selecting previously deselected package linux-image-2.6.35-20-virtual.
(Reading database ... 22546 files and directories currently installed.)
Unpacking linux-image-2.6.35-20-virtual (from linux-image-2.6.35-20-virtual_2.6.35-20.30~EBSPerf_i386.deb) ...
Done.
Setting up linux-image-2.6.35-20-virtual (2.6.35-20.30~EBSPerf) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.35-20-virtual
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.35-20-virtual /boot/vmlinuz-2.6.35-20-virtual
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.35-20-virtual /boot/vmlinuz-2.6.35-20-virtual
run-parts: executing /etc/kernel/postinst.d/x-grub-legacy-ec2 2.6.35-20-virtual /boot/vmlinuz-2.6.35-20-virtual
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-2.6.35-22-virtual
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/vmlinuz-2.6.35-22-virtual
Found kernel: /boot/vmlinuz-2.6.35-20-virtual
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.35-20-virtual /boot/vmlinuz-2.6.35-20-virtual
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-virtual
Found initrd image: /boot/initrd.img-2.6.35-22-virtual
Found linux image: /boot/vmlinuz-2.6.35-20-virtual
Found initrd image: /boot/initrd.img-2.6.35-20-virtual
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
done

Changed in cloud-init (Ubuntu):
status: Fix Committed → Fix Released
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.