Fails to include libgcc, resulting in cryptsetup failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I recently rebooted my laptop, and couldn't unlock my (cryptsetup-
Dropping to text mode, I can see that cryptsetup is failing with a message like:
"libgcc_s: missing library, needed for pthread_exit”.
Indeed, in the recovery console cryptsetup will immediately crash with that message.
I note that initramfs-tools already has some logic for detecting when libgcc_s is needed but isn't in DT_NEEDED, but this seems to have gone out of date.
Adding an initramfs hook to manually add libgcc_s to the initramfs results in a bootable system again.
I don't reboot this laptop often, so I unfortunately can't narrow down *when* this started failing better than “sometime in the last 2 months”.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: initramfs-tools 0.140ubuntu10
ProcVersionSign
Uname: Linux 5.13.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 24 12:08:34 2022
InstallationDate: Installed on 2021-06-26 (211 days ago)
InstallationMedia: Ubuntu 21.10.0 2021.05.28 amd64 "bcachefs" (20210622)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to jammy on 2021-10-28 (87 days ago)