** Description changed: + === Begin SRU Template === + [Impact] + Packaging changes caused grub-legacy-ec2 package to install its + kernel post-install and post-rm hooks into + /etc/kernel/kernel/postinst.d + /etc/kernel/kernel/postrm.d + rather than + /etc/kernel/postinst.d + /etc/kernel/postrm.d + + 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-snapshot ]; then + wget https://git.launchpad.net/~smoser/cloud-init/+git/sru-info/plain/bin/lxc-proposed-snapshot + chmod 755 lxc-proposed-snapshot + fi + + $ ./lxc-proposed-snapshot --proposed --publish xenial xenial-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 --show grub-legacy-ec2 + /etc/kernel/postinst.d/x-grub-legacy-ec2 + /etc/kernel/postrm.d/x-grub-legacy-ec2 + + + ## install a kernel make sure it does not fail. + $ lxc exec test-1581416 -- apt-get install linux-image-virtual + ... + run-parts: executing /etc/kernel/postinst.d/x-grub-legacy-ec2 4.13.0-32-generic /boot/vmlinuz-4.13.0-32-generic + ... + + ## 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-4.13.0-32-generic root=LABEL=cloudimg-rootfs ro console=hvc0 + kernel /boot/vmlinuz-4.13.0-32-generic root=LABEL=cloudimg-rootfs ro single + + [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://git.launchpad.net/cloud-init/commit/?id=f1246a1f8b + + === 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-0ubuntu1 - Candidate: 0.7.7~bzr1212-0ubuntu1 - Version table: - *** 0.7.7~bzr1212-0ubuntu1 500 - 500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages - 500 http://de.archive.ubuntu.com/ubuntu xenial/main i386 Packages - 100 /var/lib/dpkg/status + Installed: 0.7.7~bzr1212-0ubuntu1 + Candidate: 0.7.7~bzr1212-0ubuntu1 + Version table: + *** 0.7.7~bzr1212-0ubuntu1 500 + 500 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 Packages + 500 http://de.archive.ubuntu.com/ubuntu xenial/main i386 Packages + 100 /var/lib/dpkg/status The debian/grub-legacy-ec2.install file seems to be wrong, files end up in $ dpkg -L grub-legacy-ec2 | grep /etc /etc /etc/kernel /etc/kernel/kernel /etc/kernel/kernel/postinst.d /etc/kernel/kernel/postinst.d/x-grub-legacy-ec2 /etc/kernel/kernel/postrm.d /etc/kernel/kernel/postrm.d/x-grub-legacy-ec2 where they will not be picked up by linux-image-* postinst scripts. Cheers Wolfgang
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1581416 Title: grub-legacy-ec2 installs files in /etc/kernel/kernel/post(inst|rm).d To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1581416/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
