/usr/share/initramfs-tools/hooks/lvm2 is not executable

Bug #1917539 reported by Eugene Crosser
6
This bug affects 1 person
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/initramfs-tools/hooks/lvm2 ignored: not executable

(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/initramfs-tools/hooks/lvm2
-rw-r--r-- 1 root root 691 Feb 8 16:25 /usr/share/initramfs-tools/hooks/lvm2

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
ProcVersionSignature: Ubuntu 5.10.0-14.15-generic 5.10.11
Uname: Linux 5.10.0-14-generic x86_64
ApportVersion: 2.20.11-0ubuntu59
Architecture: amd64
CasperMD5CheckResult: unknown
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)

Revision history for this message
Eugene Crosser (crosser) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.