grub-legacy-ec2 installs files in /etc/kernel/kernel/post(inst|rm).d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Low
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=== Begin SRU Template ===
[Impact]
Packaging changes caused grub-legacy-ec2 package to install its
kernel post-install and post-rm hooks into
/etc/
/etc/
rather than
/etc/
/etc/
The result was that kernel package installation or updates
would not execute these scripts and the /boot/grub/menu.lst that
was updated would not get updated.
[Test Case]
if [ ! -f lxc-proposed-
wget https:/
chmod 755 lxc-proposed-
fi
$ ./lxc-proposed-
$ lxc launch xenial-proposed test-1581416
$ sleep 10 ; echo wait for boot
$ lxc exec test-1581416 -- apt-get update -q
$ lxc exec test-1581416 -- apt-get install grub-legacy-ec2
## look at files in the package, verify the right directory.
$ lxc exec test-1581416 -- dpkg-query -L grub-legacy-ec2 | grep kernel
/etc/kernel/
/etc/kernel/
## install a kernel make sure it does not fail.
$ lxc exec test-1581416 -- apt-get install linux-image-virtual
...
run-parts: executing /etc/kernel/
...
## Now verify that the menu.lst has the expected kernel that was installed.
$ lxc exec test-1581416 -- grep vmlinuz /boot/grub/menu.lst
# kernel /vmlinuz root=/dev/hda2 ro
kernel /boot/vmlinuz-
kernel /boot/vmlinuz-
[Regression Potential]
These scripts will now get executed at the times when kernel package
hooks execute. A failure of the script will bubble up and cause failure
of dpkg or apt.
[Other Info]
Upstream commit at
https:/
=== End SRU Template ===
Hi,
can't use apport, so reporting this via the web.
$ lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04
$ apt-cache policy grub-legacy-ec2
grub-legacy-ec2:
Installed: 0.7.7~bzr1212-
Candidate: 0.7.7~bzr1212-
Version table:
*** 0.7.7~bzr1212-
500 http://
500 http://
100 /var/lib/
The debian/
$ dpkg -L grub-legacy-ec2 | grep /etc
/etc
/etc/kernel
/etc/kernel/kernel
/etc/kernel/
/etc/kernel/
/etc/kernel/
/etc/kernel/
where they will not be picked up by linux-image-* postinst scripts.
Cheers
Wolfgang
Changed in cloud-init (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
tags: |
added: verification-done verification-done-xenial removed: verification-needed verification-needed-xenial |
This bug was fixed in the package cloud-init - 0.7.8-61- g2d2ec70- 0ubuntu1
--------------- 61-g2d2ec70- 0ubuntu1) zesty; urgency=medium
cloud-init (0.7.8-
* debian/ grub-legacy- ec2.install: install post(inst|rm) files correctly. nError [Wesley Wiedenmeier] config/ cc_rh_subscript ion.py: Remove repos before adding [Brent Baude]
[Simon Deziel] (LP: #1581416)
* New upstream snapshot.
- OpenStack: extend physical types to include hyperv, hw_veb, vhost_user. [Scott Moser] (LP: #1642679)
- tests: fix assumptions that expected no eth0 in system. [Scott Moser] (LP: #1644043)
- net/cmdline: Consider ip= or ip6= on command line not only ip= [Scott Moser] (LP: #1639930)
- Just use file logging by default [Joshua Harlow] (LP: #1643990)
- Improve formatting for ProcessExecutio
- flake8: fix trailing white space [Scott Moser]
- Doc: various documentation fixes [Sean Bright]
- cloudinit/
- packages/redhat: fix rpm spec file. [Scott Moser]
- main: set TZ in environment if not already set. [Ryan Harper]
- Azure: No longer rely on walinux agent. [Scott Moser] (LP: #1538522)
- disk_setup: Use sectors as unit when formatting MBR disks with sfdisk. [Daniel Watkins] (LP: #1460715)
-- Scott Moser <email address hidden> Mon, 28 Nov 2016 16:08:09 -0500