mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
update lvm2
This commit is contained in:
parent
a4358edf54
commit
0ddd798a74
@ -9,24 +9,21 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgbase=lvm2
|
||||
pkgname=('lvm2' 'device-mapper')
|
||||
pkgver=2.02.74
|
||||
_pkgverdm=1.02.52
|
||||
pkgver=2.02.84
|
||||
_pkgverlvm=${pkgver}
|
||||
pkgrel=1.1
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://sourceware.org/lvm2/"
|
||||
license=('GPL2' 'LGPL2.1')
|
||||
groups=('base')
|
||||
conflicts=('mkinitcpio<0.5.99')
|
||||
source=(ftp://sources.redhat.com/pub/lvm2/old/LVM2.${_pkgverlvm}.tgz
|
||||
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${_pkgverlvm}.tgz
|
||||
lvm2_install
|
||||
lvm2_hook)
|
||||
md5sums=('3f86b528310183cad73c81c8efda0c34'
|
||||
'f781c9f5dd4f9934952c687b73d26a18'
|
||||
'95bed25bdbc2c2d8500e7a07aeff7f65')
|
||||
sha1sums=('fc6cd04e4a908906c6f596ad99948140728be99c'
|
||||
'583424bb0a6f89ffe4e4ea446b912f0fedac7050'
|
||||
'0dc0c0d620f634c4d078afdb78e3bae15ccf957b')
|
||||
md5sums=('8b4e0897ee48f02c0dff11940e44e23b' 'e29bc80d636ed17b617d9b384a5f3aa0'\
|
||||
'7103e3fef1180478811ac4e32aec540d')
|
||||
sha1sums=('6d92f4474f93c7d3824a0eb3469c7e4f9ef8f1d4' '662fc54ce291fd79bd09701e4c3e10854f325282'\
|
||||
'769767d84c73674cbb68c765460e57c428c314a0')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/LVM2.${_pkgverlvm}"
|
||||
@ -67,3 +64,32 @@ package_lvm2() {
|
||||
install -D -m644 "${srcdir}/lvm2_hook" "${pkgdir}/lib/initcpio/hooks/lvm2"
|
||||
install -D -m644 "${srcdir}/lvm2_install" "${pkgdir}/lib/initcpio/install/lvm2"
|
||||
}
|
||||
|
||||
package_device-mapper() {
|
||||
pkgdesc="Device mapper userspace library and tools"
|
||||
url="http://sourceware.org/dm/"
|
||||
depends=('glibc' 'udev')
|
||||
|
||||
cd "${srcdir}/LVM2.${_pkgverlvm}"
|
||||
make DESTDIR="${pkgdir}" install_device-mapper
|
||||
}
|
||||
|
||||
package_lvm2() {
|
||||
pkgdesc="Logical Volume Manager 2 utilities"
|
||||
depends=('bash' "device-mapper>=${pkgver}" 'udev' 'readline')
|
||||
conflicts=('lvm' 'mkinitcpio<0.5.99')
|
||||
backup=('etc/lvm/lvm.conf')
|
||||
options=('!makeflags')
|
||||
|
||||
cd "${srcdir}/LVM2.${_pkgverlvm}"
|
||||
make DESTDIR="${pkgdir}" install_lvm2
|
||||
# install applib
|
||||
cd liblvm
|
||||
make DESTDIR="${pkgdir}" install
|
||||
cd ..
|
||||
# /etc directories
|
||||
install -d "${pkgdir}"/etc/lvm/{archive,backup}
|
||||
# mkinitcpio hook
|
||||
install -D -m644 "${srcdir}/lvm2_hook" "${pkgdir}/lib/initcpio/hooks/lvm2"
|
||||
install -D -m644 "${srcdir}/lvm2_install" "${pkgdir}/lib/initcpio/install/lvm2"
|
||||
}
|
||||
|
@ -17,9 +17,7 @@ run_hook ()
|
||||
|
||||
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
|
||||
|
||||
msg "Scanning logical volumes..."
|
||||
eval /sbin/lvm vgscan --ignorelockingfailure $LVMQUIET
|
||||
msg "Activating logical volumes..."
|
||||
eval /sbin/lvm vgchange --ignorelockingfailure --ignoremonitoring -ay $LVMQUIET
|
||||
eval /sbin/lvm vgchange --sysinit -a y $LVMQUIET
|
||||
fi
|
||||
}
|
||||
|
@ -10,7 +10,6 @@ install ()
|
||||
add_dir "/dev/mapper"
|
||||
add_binary "/sbin/lvm"
|
||||
add_binary "/sbin/dmsetup"
|
||||
add_binary "/sbin/dmeventd"
|
||||
add_file "/lib/udev/rules.d/10-dm.rules"
|
||||
add_file "/lib/udev/rules.d/13-dm-disk.rules"
|
||||
add_file "/lib/udev/rules.d/95-dm-notify.rules"
|
||||
|
Loading…
Reference in New Issue
Block a user