Activity log for bug #1929255

Date Who What changed Old value New value Message
2021-05-21 22:52:32 Fabien Malfoy bug added bug
2021-05-21 22:52:32 Fabien Malfoy attachment added Proposed patch https://bugs.launchpad.net/bugs/1929255/+attachment/5499310/+files/xx-update-initrd-links.patch
2021-05-22 00:30:29 Ubuntu Foundations Team Bug Bot tags bionic installkernel bionic installkernel patch
2021-05-22 00:30:30 Ubuntu Foundations Team Bug Bot bug added subscriber Terry Rudd
2021-05-24 13:25:18 Launchpad Janitor linux-base (Ubuntu): status New Confirmed
2021-05-24 13:26:01 Artem Leshchev bug added subscriber Артем Лещев
2021-05-25 09:55:02 Louis Bouchard bug added subscriber Louis Bouchard
2021-05-25 10:22:58 Louis Bouchard nominated for series Ubuntu Bionic
2021-05-25 10:22:58 Louis Bouchard bug task added linux-base (Ubuntu Bionic)
2021-05-25 10:23:29 Launchpad Janitor linux-base (Ubuntu Bionic): status New Confirmed
2021-05-25 11:55:56 Dimitri John Ledkov tags bionic installkernel patch bionic installkernel patch regresion-proposed regression-update
2021-05-25 12:03:59 Fabien Malfoy tags bionic installkernel patch regresion-proposed regression-update bionic installkernel patch regression-proposed regression-update
2021-05-27 09:48:50 Dimitri John Ledkov attachment added lp1929255.patch https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1929255/+attachment/5500663/+files/lp1929255.patch
2021-05-27 10:35:49 Dimitri John Ledkov description ## Problem description Executing the `/etc/kernel/postinst.d/xx-update-initrd-links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead: /initrd.img -> initrd.imgboot/vmlinuz-5.3.0-53-generic /initrd.img.old -> initrd.imgboot/vmlinuz-5.3.0-53-generic while it should actually be: /initrd.img -> boot/initrd.img-5.3.0-53-generic /initrd.img.old -> boot/initrd.img-5.3.0-53-generic The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable. ## Solution A solution is proposed through the attached patch file. ## System information Description: Ubuntu 18.04.5 LTS Release: 18.04 Uname: Linux 5.3.0-53-generic x86_64 ## Package information Package: linux-base 4.5ubuntu1.5 PackageArchitecture: all SourcePackage: linux-base Tags: bionic package-from-proposed [Impact] ## Problem description Executing the `/etc/kernel/postinst.d/xx-update-initrd-links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead: /initrd.img -> initrd.imgboot/vmlinuz-5.3.0-53-generic /initrd.img.old -> initrd.imgboot/vmlinuz-5.3.0-53-generic while it should actually be: /initrd.img -> boot/initrd.img-5.3.0-53-generic /initrd.img.old -> boot/initrd.img-5.3.0-53-generic The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable. [Test Plan] * Install new linux-base and initramfs-tools * create /etc/kernel-img.conf with do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = yes * Install one kernel flavour, check that symlinks in /boot have sane targets * Install another kernel, check that symlinks in /boot/ have sane targets * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it). and check that symlinks in /boot have sane targets. * Purge all kernel, and remove symlinks in /boot * Update /etc/kernel-img.conf to do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = no * Install one kernel flavour, check that symlinks in / have sane targets * Install another kernel, check that symlinks in / have sane targets * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it) [Where problems could occur] * The rewritten postinst.d script now simply mostly calls linux-update-links like the normal linux-image postinst script does. One has to make sure that .deb installations of kernels happens correctly and that installkernel way of installing kernels happens correctly. Under different kernel-img.conf settings. The previous incarnations of fixing this and related issues did not account for the above cases and codepaths.
2021-05-27 12:44:56 Dimitri John Ledkov description [Impact] ## Problem description Executing the `/etc/kernel/postinst.d/xx-update-initrd-links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead: /initrd.img -> initrd.imgboot/vmlinuz-5.3.0-53-generic /initrd.img.old -> initrd.imgboot/vmlinuz-5.3.0-53-generic while it should actually be: /initrd.img -> boot/initrd.img-5.3.0-53-generic /initrd.img.old -> boot/initrd.img-5.3.0-53-generic The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable. [Test Plan] * Install new linux-base and initramfs-tools * create /etc/kernel-img.conf with do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = yes * Install one kernel flavour, check that symlinks in /boot have sane targets * Install another kernel, check that symlinks in /boot/ have sane targets * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it). and check that symlinks in /boot have sane targets. * Purge all kernel, and remove symlinks in /boot * Update /etc/kernel-img.conf to do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = no * Install one kernel flavour, check that symlinks in / have sane targets * Install another kernel, check that symlinks in / have sane targets * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it) [Where problems could occur] * The rewritten postinst.d script now simply mostly calls linux-update-links like the normal linux-image postinst script does. One has to make sure that .deb installations of kernels happens correctly and that installkernel way of installing kernels happens correctly. Under different kernel-img.conf settings. The previous incarnations of fixing this and related issues did not account for the above cases and codepaths. [Impact] ## Problem description Executing the `/etc/kernel/postinst.d/xx-update-initrd-links` script incorrectly detects symbolic links targets and then creates malformed (hence broken) ones instead: /initrd.img -> initrd.imgboot/vmlinuz-5.3.0-53-generic /initrd.img.old -> initrd.imgboot/vmlinuz-5.3.0-53-generic while it should actually be: /initrd.img -> boot/initrd.img-5.3.0-53-generic /initrd.img.old -> boot/initrd.img-5.3.0-53-generic The problem appeared with the release of the version 4.5ubuntu1.5 of the linux-base package, which made this script executable. [Test Plan]  * Install new linux-base and initramfs-tools  * create /etc/kernel-img.conf with do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = yes  * Install one kernel flavour, check that symlinks in /boot have sane targets  * Install another kernel, check that symlinks in /boot/ have sane targets  * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it). and check that symlinks in /boot have sane targets.  * Purge all kernel, and remove symlinks in /boot  * Update /etc/kernel-img.conf to do_symlinks = yes do_bootloader = no do_initrd = yes link_in_boot = no  * Install one kernel flavour, check that symlinks in / have sane targets  * Install another kernel, check that symlinks in / have sane targets  * create a selfbuilt kernel and install it by calling installkernel (you can download kernel debs from kernel-ppa, and unpack them to pretend one has self built it) * remove all kernels, purge initramfs-tools, clean up symlinks in / and /boot * repeat all of the above, without having initramfs-tools installed. I.e. install kernels _without_ recommneds. [Where problems could occur]  * The rewritten postinst.d script now simply mostly calls linux-update-links like the normal linux-image postinst script does. One has to make sure that .deb installations of kernels happens correctly and that installkernel way of installing kernels happens correctly. Under different kernel-img.conf settings. The previous incarnations of fixing this and related issues did not account for the above cases and codepaths.
2021-05-27 12:45:30 Dimitri John Ledkov nominated for series Ubuntu Impish
2021-05-27 12:45:30 Dimitri John Ledkov bug task added linux-base (Ubuntu Impish)
2021-05-27 12:45:30 Dimitri John Ledkov nominated for series Ubuntu Focal
2021-05-27 12:45:30 Dimitri John Ledkov bug task added linux-base (Ubuntu Focal)
2021-05-27 12:45:30 Dimitri John Ledkov nominated for series Ubuntu Hirsute
2021-05-27 12:45:30 Dimitri John Ledkov bug task added linux-base (Ubuntu Hirsute)
2021-05-27 12:45:30 Dimitri John Ledkov nominated for series Ubuntu Groovy
2021-05-27 12:45:30 Dimitri John Ledkov bug task added linux-base (Ubuntu Groovy)
2021-05-27 13:54:07 Dimitri John Ledkov attachment added lp1929255.patch https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1929255/+attachment/5500691/+files/lp1929255.patch
2021-05-27 13:54:23 Dimitri John Ledkov attachment removed lp1929255.patch https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1929255/+attachment/5500663/+files/lp1929255.patch
2021-06-01 16:42:07 Launchpad Janitor linux-base (Ubuntu Impish): status Confirmed Fix Released
2021-06-02 15:37:17 Mathew Hodson tags bionic installkernel patch regression-proposed regression-update bionic installkernel patch regression-proposed
2021-06-04 07:53:35 Timo Aaltonen linux-base (Ubuntu Bionic): status Confirmed Fix Committed
2021-06-04 07:53:38 Timo Aaltonen bug added subscriber Ubuntu Stable Release Updates Team
2021-06-04 07:53:41 Timo Aaltonen bug added subscriber SRU Verification
2021-06-04 08:00:03 Timo Aaltonen linux-base (Ubuntu Focal): status New Fix Committed
2021-06-04 08:13:42 Timo Aaltonen linux-base (Ubuntu Hirsute): status New Fix Committed
2021-06-23 11:14:07 Dimitri John Ledkov tags bionic installkernel patch regression-proposed bionic installkernel patch verification-done-hirsute
2021-06-23 14:05:06 Dimitri John Ledkov tags bionic installkernel patch verification-done-hirsute bionic installkernel patch verification-done-focal verification-done-hirsute
2021-06-23 14:23:02 Dimitri John Ledkov tags bionic installkernel patch verification-done-focal verification-done-hirsute bionic installkernel patch verification-done-bionic verification-done-focal verification-done-hirsute
2021-06-23 14:59:47 Frank Heimes bug added subscriber Frank Heimes
2021-06-29 08:00:39 Launchpad Janitor linux-base (Ubuntu Hirsute): status Fix Committed Fix Released
2021-06-29 08:00:54 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2021-06-29 08:01:32 Launchpad Janitor linux-base (Ubuntu Focal): status Fix Committed Fix Released
2021-06-29 08:05:39 Launchpad Janitor linux-base (Ubuntu Bionic): status Fix Committed Fix Released