LVM2 hook not executable; causes update-initramfs to miss adding lvm2 binaries

Bug #1917424 reported by Paul Goins
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I did an upgrade from Groovy to Hirsute today, but the upgrade did not go well.

I run an encrypted LVM for my root Ubuntu partition. My grub did not get updated properly at upgrade time, but via a USB startup disk for Hirsute I was able to repair this myself. However, I spent hours trying to get grub to detect my LVs.

Ultimately, I found the problem: /usr/share/initramfs-tools/hooks/lvm2 in the lvm2_2.03.11-2ubuntu2_amd64.deb package lacks an executable flag. Running update-initramfs verbosely highlighted that the hook was not getting fired for this reason.

Upon adding the executable flag to the file, I was able to use a chroot to re-build the initramfs and get my system to boot.

Revision history for this message
Paul Goins (vultaire) wrote :

Also, for completeness:

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Hirsute

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
2.03.11-2ubuntu2

3) What you expected to happen
To be able to build a working initramfs to boot Ubuntu after upgrade.

4) What happened instead
initramfs was missing the lvm2 binary and did not pick up my LVs after I decrypted the partition which hosted them.

Revision history for this message
Christof Arnosti (charnocc) wrote :

To fix a non-booting system:
- Boot from live-linux
- Mount all file systems of installation to /mnt/ (this depends on your setup)
- chroot /mnt/
- chmod 766 /usr/share/initramfs-tools/hooks/lvm2
- update-initramfs -c -k all
- reboot

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lvm2 (Ubuntu):
status: New → Confirmed
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.