Public bug reported:

I've had this happen twice on kernel upgrades, most recently when linux-
image-extra-4.4.0-95-generic failed to download due to an iffy
connection. Because linux-image-4.4.0-95-generic did successfully
download, its setup (run-parts: executing /etc/kernel/postinst.d/zz-
update-grub 4.4.0-95-generic /boot/vmlinuz-4.4.0-95-generic) was run and
an initrd file built.

The problem is that the resulting initrd file is less than half the size
it should be, lacking all of the drivers that would have come in from
the "extra" package:

-rw-r--r-- 1 root root 38288353 Aug 22 10:09 initrd.img-4.4.0-89-generic
-rw-r--r-- 1 root root 38289328 Aug 22 10:11 initrd.img-4.4.0-93-generic
-rw-r--r-- 1 root root 38371214 Sep  2 06:00 initrd.img-4.4.0-94-generic
-rw-r--r-- 1 root root 16899714 Sep 11 12:15 initrd.img-4.4.0-95-generic

The result is a system that upon reboot cannot access important things
such as the network. Recovery involves putting hands on the console and
using GRUB to manually select a prior kernel with a good initrd.

Recommendation: Do not allow the build of initrd and consequent
activation of the new kernel as default without making sure the extra
package has been or can be installed if selected. At the very minimum,
issue a warning that the system may not be properly rebootable.

Note that the following information is compiled while booted from kernel
94 rather than the kernel 95 with the faulty initrd.

# uname -a
Linux xena 4.4.0-94-generic #117-Ubuntu SMP Tue Aug 29 08:13:56 UTC 2017 x86_64 
x86_64 x86_64 GNU/Linux

# cat /proc/version_signature 
Ubuntu 4.4.0-94.117-generic 4.4.83

# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/";
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1716438

Title:
  Failure to download linux-image-extra-*-generic causes initrd to be
  built incorrectly with no warning

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1716438/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to