FS#69591 - [lvm2] latest update breaks initramfs when using sd-lvm2

Attached to Project: Arch Linux
Opened by Amin Vakil (aminvakil) - Monday, 08 February 2021, 21:04 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 09 February 2021, 07:11 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

If sd-lvm2 has been used in HOOKS in /etc/mkinitcpio.conf, latest update will trigger mkinitcpio and it would result in

==> WARNING: Hook 'sd-lvm2' is deprecated. Replace it with 'lvm2' in your config
/usr/lib/initcpio/functions: line 735: lvm2: No such file or directory
==> ERROR: Failed to read lvm2

This would be fixed by changing sd-lvm2 to lvm2, but I guess this is not an appropriate way of deprecation as it breaks initramfs and make system unbootable.

Additional info:
lvm2 2.03.11-2

Steps to reproduce:
Update to lvm2 lvm2 2.03.11-2

I'm not sure if other updates were responsible for this break or not, but this was the whole update:
testing/cryptsetup 2.3.4-1 2.3.4-2 0.00 MiB 0.55 MiB
testing/device-mapper 2.02.187-3 2.03.11-2 0.01 MiB 0.29 MiB
testing/dmraid 1.0.0.rc16.3-12 1.0.0.rc16.3-13 0.00 MiB 0.12 MiB
community-testing/docker 1:20.10.3-1 1:20.10.3-2 0.00 MiB 48.72 MiB
testing/grub 2:2.04-8 2:2.04-9 0.00 MiB 6.74 MiB
extra/gtk-update-icon-cache 1:4.0.2-1 1:4.0.3-1 0.00 MiB 0.02 MiB
extra/imagemagick 7.0.10.61-1 7.0.10.62-1 0.03 MiB 2.55 MiB
testing/libblockdev 2.25-1 2.25-2 0.00 MiB 0.23 MiB
community-testing/libvirt 1:7.0.0-2 1:7.0.0-3 0.00 MiB 7.50 MiB
testing/lvm2 2.02.187-3 2.03.11-2 -0.67 MiB 1.46 MiB
testing/pacman 5.2.2-1 5.2.2-2 0.00 MiB 0.82 MiB
testing/parted 3.4-1 3.4-2 0.00 MiB 0.53 MiB
testing/python-cryptography 3.3.1-1 3.4.1-1 0.35 MiB 0.51 MiB
testing/xfsprogs 5.10.0-1 5.10.0-2 0.00 MiB 1.05 MiB
This task depends upon

Closed by  Christian Hesse (eworm)
Tuesday, 09 February 2021, 07:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  lvm2 2.03.11-3
Comment by Amin Vakil (aminvakil) - Monday, 08 February 2021, 21:06 GMT Comment by Amin Vakil (aminvakil) - Monday, 08 February 2021, 23:20 GMT
  • Field changed: Percent Complete (100% → 0%)
At least the word "deprecated" and "WARNING" should change imho, but I won't argue about that.
Comment by Doug Newgard (Scimmia) - Monday, 08 February 2021, 23:21 GMT
Looks like this is supposed to work, but it requires the symlink have the full path.
Comment by Christian Hesse (eworm) - Tuesday, 09 February 2021, 07:11 GMT
This is already fixed in lvm2 2.03.11-3, please test.
The wording for the warning comes from mkinitcpio... I can not influence that.

Also opened a pull request for mkinitcpio to support symlinks with relative target path.
https://github.com/archlinux/mkinitcpio/pull/48

Loading...