/usr/share/initramfs-tools/hooks/lvm2 is not executable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
after a recent (yesterday/today) upgrade of hirsute, it could not boot from LUKS root, dropping to inirtamfs. Investigation showed that `lvm` binary is not present in initramfs generated by initramfs-tools. When I ran `initrmfs-tools` by hand with `-v` option, I noticed the message:
/usr/share/
(this message does not show up when initramfs-tools is run without `-v`)
Sure enough, after manually changing permissions to all-executable and rerunning initramfs-tools the binary is included in initrd and system boots normally. But reinstalling lvm2 resets permissions again:
$ ls -l /usr/share/
-rw-r--r-- 1 root root 691 Feb 8 16:25 /usr/share/
and on the next build, initrd does not contain lvm binary again.
lvm2: 2.03.11-2ubuntu2
initramfs-tools: 0.137ubuntu12
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: lvm2 2.03.11-2ubuntu2
ProcVersionSign
Uname: Linux 5.10.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu59
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 3 00:35:15 2021
InstallationDate: Installed on 2020-01-02 (425 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190802)
SourcePackage: lvm2
UpgradeStatus: Upgraded to hirsute on 2021-02-22 (8 days ago)