Comment 0 for bug 1880853

Revision history for this message
Sorah Fukumori (sorah) wrote :

With Ubuntu 20.04 on AWS m6g.* instance family, installing libc6-lse lets update-initramfs always fail with the following error:

ubuntu@ip-10-18-23-79:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.4.0-1011-aws
E: /usr/share/initramfs-tools/hooks/btrfs failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.4.0-1011-aws with 1.

## Steps to reproduce (on AWS)

### With focal 20200423 AMI

1. Find the following AMI and launch on m6g instance family

   ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20200423

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/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20200522

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/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20200522" includes libc6-lse. On 20200522 AMI, this doesn't reproduce after removing libc6-lse manually.
- 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
CasperMD5CheckResult: skip
Date: Wed May 27 09:52:16 2020
Dependencies:
 gcc-10-base 10-20200411-0ubuntu1
 libc6 2.31-0ubuntu9
 libcrypt1 1:4.4.10-10ubuntu4
 libgcc-s1 10-20200411-0ubuntu1
 libidn2-0 2.2.0-2
 libunistring2 0.9.10-2
DistroRelease: Ubuntu 20.04
Ec2AMI: ami-061102f51d47b1c24
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: ap-northeast-1c
Ec2InstanceType: m6g.medium
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
Package: libc6-lse 2.31-0ubuntu9
PackageArchitecture: arm64
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-256color
 PATH=(custom, no user)
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.4.0-1009.9-aws 5.4.30
SourcePackage: glibc
Tags: focal ec2-images
Uname: Linux 5.4.0-1009-aws aarch64
UpgradeStatus: No upgrade log present (probably fresh install)