libc6-lse lets update-initramfs fail on AWS m6g instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
Fix Released
|
Undecided
|
Unassigned | ||
btrfs-progs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
glibc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Critical
|
Unassigned |
Bug Description
[Impact]
* update-initramfs -u fails on arm64 m6g instances in AWS
[Test Case]
* launch m6g instance in AWS
* install libc6-lse (if not installed)
* run $ update-initramfs -u
* It should suceed
* It should contain pthread, and libgcc_s libraries
[Regression Potential]
* Adding one more path to libgcc_s1 resolution. This will still fail if something compiles libc6 for _two_ optimisations like /lib/$arch/
[Other Info]
* libphtread dlopens libgcc_s1, thus whenever libpthread is needed in the initrd libgcc_s1 must be copied in too. However the logic to find matching libgcc_s1 is broken for optimizied builds of libc6 without optimized build of libgcc_s1. I think libpthread should link against libgcc_s1 to prevent these issues.
* Original bug report
With Ubuntu 20.04 on AWS m6g.* instance family, installing libc6-lse lets update-initramfs always fail with the following error:
ubuntu@
update-initramfs: Generating /boot/initrd.
E: /usr/share/
update-initramfs: failed for /boot/initrd.
## Steps to reproduce (on AWS)
### With focal 20200423 AMI
1. Find the following AMI and launch on m6g instance family
ubuntu/
2. Run: sudo apt update && sudo apt install libc6-lse
3. Try: sudo update-initramfs -u
### With focal 20200522 AMI
1. Find the following AMI and launch on m6g instance family
ubuntu/
2. Try: sudo update-initramfs -u
## Note
- The entire log of the above steps performed on 20200423 AMI is attached.
- Latest cloud-image AMI "ubuntu/
- This doesn't reproduce on EC2 a1.* instance family.
## Expected behavior
Does not fail.
## Background to find this bug
As the 20200522 AMI includes libc6-lse out-of-the-box & apt-get upgrade pulls newer package that triggers update-initramfs, apt-get upgrade always fail on 20200522 AMI.
the following is an apport report on 20200423 AMI:
----
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27
Architecture: arm64
CasperMD5CheckR
Date: Wed May 27 09:52:16 2020
Dependencies:
gcc-10-base 10-20200411-
libc6 2.31-0ubuntu9
libcrypt1 1:4.4.10-10ubuntu4
libgcc-s1 10-20200411-
libidn2-0 2.2.0-2
libunistring2 0.9.10-2
DistroRelease: Ubuntu 20.04
Ec2AMI: ami-061102f51d4
Ec2AMIManifest: (unknown)
Ec2Availability
Ec2InstanceType: m6g.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
Package: libc6-lse 2.31-0ubuntu9
PackageArchitec
ProcCpuinfoMinimal:
processor : 0
BogoMIPS : 243.75
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
ProcEnviron:
LANG=C.UTF-8
TERM=screen-
PATH=(custom, no user)
SHELL=/bin/bash
ProcVersionSign
SourcePackage: glibc
Tags: focal ec2-images
Uname: Linux 5.4.0-1009-aws aarch64
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Canonical Foundations Team: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 92 lines (+29/-9)5 files modifieddebian/changelog (+20/-0)
debian/initramfs-tools-bin.install (+1/-0)
hook-functions (+0/-7)
mkinitramfs (+3/-0)
src/Makefile (+5/-2)
tags: | added: rls-ff-incoming |
tags: | removed: rls-ff-incoming |
tags: | added: id-5ecfd9948c28fe2dab5906af |
Changed in btrfs-progs (Ubuntu): | |
status: | New → Triaged |
Changed in initramfs-tools (Ubuntu): | |
status: | New → Triaged |
Changed in initramfs-tools (Ubuntu Focal): | |
status: | New → In Progress |
description: | updated |
description: | updated |
tags: | added: patch |
tags: |
added: verification-done removed: verification-needed |
Changed in glibc (Ubuntu Bionic): | |
status: | New → Invalid |
Changed in btrfs-progs (Ubuntu Bionic): | |
status: | New → Invalid |
tags: | added: id-5ed6b0877aa3de39fa0b89e6 |
description: | updated |
Changed in initramfs-tools (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in cloud-images: | |
status: | New → Fix Released |
note that there's a difference of "atomics" in /proc/cpuinfo features between a1 instances and m6g instances.