FS#72585 - [lvm2] Missing lvm2-pvscan@.service unit in the latest release (2.03.14-1)

Attached to Project: Arch Linux
Opened by Frantisek Sumsal (mrc0mmand) - Saturday, 30 October 2021, 11:01 GMT
Last edited by Christian Hesse (eworm) - Monday, 01 November 2021, 20:03 GMT
Task Type Bug Report
Category Packages: Core
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:
In the latest lvm2 package release the PKGBUILD snippet, which
explicitly adds the lvm2-pvscan@.service unit, has been removed,
thus the unit is missing from the final package.

Relevant commit: https://github.com/archlinux/svntogit-packages/commit/4e0c373b5911bec18b04d945375b9aceb025565c#diff-6e49ca9b5efb35ed6dd0922940ab5012e02b3e1658b5ba96ff74449d5a952569L12-L16

Steps to reproduce:
# pacman -Q lvm2
lvm2 2.03.14-1
# pacman -Ql lvm2 | grep lvm2-pvscan || echo "no match"
no match

Example from an older version:
# wget https://archive.archlinux.org/repos/2021/10/24/core/os/x86_64/lvm2-2.03.13-1-x86_64.pkg.tar.zst
--2021-10-30 10:59:41-- https://archive.archlinux.org/repos/2021/10/24/core/os/x86_64/lvm2-2.03.13-1-x86_64.pkg.tar.zst
...
2021-10-30 10:59:43 (1.18 MB/s) - ‘lvm2-2.03.13-1-x86_64.pkg.tar.zst’ saved [1567471/1567471]
# pacman -U lvm2-2.03.13-1-x86_64.pkg.tar.zst
loading packages...
warning: downgrading package lvm2 (2.03.14-1 => 2.03.13-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) lvm2-2.03.13-1

Total Installed Size: 6.17 MiB
Net Upgrade Size: -0.07 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [############################################################################] 100%
(1/1) checking package integrity [############################################################################] 100%
(1/1) loading package files [############################################################################] 100%
(1/1) checking for file conflicts [############################################################################] 100%
:: Processing package changes...
(1/1) downgrading lvm2 [############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading system manager configuration...
Skipped: Current root is not booted.
(2/3) Reloading device manager configuration...
Skipped: Device manager is not running.
(3/3) Arming ConditionNeedsUpdate...
# pacman -Ql lvm2 | grep lvm2-pvscan || echo "no match"
lvm2 /usr/lib/systemd/system/lvm2-pvscan@.service
This task depends upon

Closed by  Christian Hesse (eworm)
Monday, 01 November 2021, 20:03 GMT
Reason for closing:  Not a bug
Additional comments about closing:  as expected
Comment by Christian Hesse (eworm) - Monday, 01 November 2021, 19:36 GMT
This file is no longer used and is dropped by upstream.
So is there actually an issue?
Comment by Frantisek Sumsal (mrc0mmand) - Monday, 01 November 2021, 19:44 GMT
Ah, thanks for the hint, I completely missed the fact that 69-dm-lvm-metad.rules was replaced by 69-dm-lvm.rules which indeed doesn't use the lvm2-pvscan@.service anymore, *sigh*.
Apologies for the noise.

Loading...