group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #22099
[Bug 1581416] Re: grub-legacy-ec2 installs files in /etc/kernel/kernel/post(inst|rm).d
This bug was fixed in the package cloud-init -
17.2-35-gf576b2a2-0ubuntu1~16.04.2
---------------
cloud-init (17.2-35-gf576b2a2-0ubuntu1~16.04.2) xenial-proposed; urgency=medium
* cherry-pick 40e7738: GCE: fix reading of user-data that is not
base64 encoded. (LP: #1752711)
cloud-init (17.2-35-gf576b2a2-0ubuntu1~16.04.1) xenial-proposed;
urgency=medium
* New upstream snapshot. (LP: #1747059)
- tests: add support for logs with lxd from snap and future lxd 3.
- EC2: Fix get_instance_id called against cached datasource pickle.
- cli: fix cloud-init status to report running when before result.json
- net: accept network-config in netplan format for renaming interfaces
- Fix ssh keys validation in ssh_util [Tatiana Kholkina]
-- Chad Smith <chad.smith@xxxxxxxxxxxxx> Thu, 01 Mar 2018 16:05:39
-0700
** Changed in: cloud-init (Ubuntu Xenial)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1581416
Title:
grub-legacy-ec2 installs files in /etc/kernel/kernel/post(inst|rm).d
Status in cloud-init package in Ubuntu:
Fix Released
Status in cloud-init source package in Xenial:
Fix Released
Status in cloud-init source package in Artful:
Fix Released
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/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 -L grub-legacy-ec2 | grep kernel
/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
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1581416/+subscriptions