** Description changed:

  [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/foo/bar/libpthread.
  
  [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@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)

** Changed in: initramfs-tools (Ubuntu Bionic)
       Status: New => In Progress

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

Title:
  libc6-lse lets update-initramfs fail on AWS m6g instances

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1880853/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to