This commit is contained in:
joborun linux 2022-10-24 01:49:47 +03:00
parent e1b556964d
commit 94231e370b
2 changed files with 23 additions and 11 deletions

View file

@ -10,7 +10,7 @@ pkgname=('lvm2' 'device-mapper')
#_tag='890c0635554075e122ef5437b5dfb28ff6fcb128' # git rev-parse v${pkgver//./_}
_tag='82b36d78165764dda7d44d104737a95054348a02' # git rev-parse v${pkgver//./_}pkgver=2.03.16
pkgver=2.03.16
pkgrel=02
pkgrel=03
arch=('x86_64')
url='https://sourceware.org/lvm2/'
makedepends=('git' 'thin-provisioning-tools')
@ -130,8 +130,7 @@ validpgpkeys=('88437EF5C077BD113D3B7224228191C1567E2C17' # Alasdair G Kergon <a
'D501A478440AE2FD130A1BE8B9112431E509039F') # Marian Csontos <marian.csontos@gmail.com>
sha256sums=(SKIP
e9ab9207b805cab702a666a2deb754583e6acd4c46973898ebb4170b563f0eec # 0001-udev-initcpio.patch
8870091ef70b5ea18b18bfcc770f8bda7dcd9d7cc2cc4fe5e4c3ac1f35bbb66a # lvm2_install
e9ab9207b805cab702a666a2deb754583e6acd4c46973898ebb4170b563f0eec # 0001-udev-initcpio.patch
def6e03aa1629bbc0ca1ee5e84e620366daf779f037eab2fda47487a8471729b # lvm2_install
# 8870091ef70b5ea18b18bfcc770f8bda7dcd9d7cc2cc4fe5e4c3ac1f35bbb66a # lvm2_install
e10f24b57582d6e2da71f7c80732a62e0ee2e3b867fe84591ccdb53e80fa92e0) # 11-dm-initramfs.rules

View file

@ -26,12 +26,10 @@ build() {
'95-dm-notify.rules' \
'/usr/lib/initcpio/udev/11-dm-initramfs.rules'
# this udev rule is specific for systemd and non-systemd systems
if command -v add_systemd_unit >/dev/null; then
add_udev_rule '69-dm-lvm.rules'
else
add_udev_rule '/usr/lib/initcpio/udev/69-dm-lvm.rules'
fi
# this udev rule is specific for non-systemd systems
add_udev_rule '/usr/lib/initcpio/udev/69-dm-lvm.rules'
# config file
add_file '/etc/lvm/lvm.conf'
@ -44,3 +42,18 @@ help() {
This hook enables LVM2 volumes in initramfs.
HELPEOF
}
post_upgrade() {
if [ $(vercmp $2 2.02.98-2) -lt 0 ]; then
echo "Changes to the lvm2 package:"
echo " + Activating lvm in mkinitcpio now requires both the 'udev' and 'lvm2' hooks."
echo " + LVM volumes are automatically activated by udev (full hotplug support)."
echo " + You MUST have use_lvmetad = 1 in /etc/lvm/lvm.conf (the default)."
echo " + If you uncomment auto_activation_volume_list in /etc/lvm/lvm.conf, only the"
echo " volumes listed there will be activated (default: it is commented out)."
if [ -f /etc/lvm/lvm.conf.pacnew ]; then
echo "WARNING: /etc/lvm/lvm.conf.pacnew exists. You MUST merge the required changes"
echo " into /etc/lvm/lvm.conf or LVM will fail to work."
fi
fi
}