Move .cache into new /etc/lvm/cache/ dir to assist selinux.

vgrename-by-uuid fix
This commit is contained in:
Alasdair Kergon 2007-03-08 21:46:08 +00:00
parent de6028aebc
commit 7c7aeb386f
5 changed files with 26 additions and 10 deletions

View File

@ -1 +1 @@
LVM2.2.02.22.tgz LVM2.2.02.23.tgz

7
LVM2.2.02.23.tgz.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQBF8IHXIoGRwVZ+LBcRApQgAJ0WraCjksh15cm4p/xkjjdS+hdSnACeOeRH
5iYwVwSBn7Fh03vX5yzC0lY=
=mf6D
-----END PGP SIGNATURE-----

View File

@ -1,15 +1,14 @@
%define device_mapper_version 1.02.17-6 %define device_mapper_version 1.02.17-7
Summary: Userland logical volume management tools Summary: Userland logical volume management tools
Name: lvm2 Name: lvm2
Version: 2.02.22 Version: 2.02.23
Release: 2%{?dist} Release: 1%{?dist}
License: GPL License: GPL
Group: System Environment/Base Group: System Environment/Base
URL: http://sources.redhat.com/lvm2 URL: http://sources.redhat.com/lvm2
Source0: LVM2.%{version}.tgz Source0: LVM2.%{version}.tgz
Patch0: cluster-locking-built-in.patch Patch0: cluster-locking-built-in.patch
Patch1: lvm2-nostaticreadline.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: device-mapper-devel >= %{device_mapper_version} BuildRequires: device-mapper-devel >= %{device_mapper_version}
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
@ -34,7 +33,6 @@ or more physical volumes and creating one or more logical volumes
%prep %prep
%setup -q -n LVM2.%{version} %setup -q -n LVM2.%{version}
%patch -p1 -b .locking %patch -p1 -b .locking
%patch1 -p1 -b .nostaticreadline
%build %build
%configure --enable-static_link --enable-readline --enable-lvm1_fallback --with-clvmd=cman --with-cluster=internal --with-pool=internal --with-staticdir=/sbin --with-user= --with-group= %configure --enable-static_link --enable-readline --enable-lvm1_fallback --with-clvmd=cman --with-cluster=internal --with-pool=internal --with-staticdir=/sbin --with-user= --with-group=
@ -50,8 +48,9 @@ ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgchange
ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgscan ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgscan
install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/archive install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/archive
install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/backup install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/backup
install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/cache
install -m 0700 -d $RPM_BUILD_ROOT/var/lock/lvm install -m 0700 -d $RPM_BUILD_ROOT/var/lock/lvm
install -m 0600 /dev/null $RPM_BUILD_ROOT/etc/lvm/.cache install -m 0600 /dev/null $RPM_BUILD_ROOT/etc/lvm/cache/.cache
mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d
install scripts/clvmd_init_rhel4 $RPM_BUILD_ROOT/etc/rc.d/init.d/clvmd install scripts/clvmd_init_rhel4 $RPM_BUILD_ROOT/etc/rc.d/init.d/clvmd
install -m 0755 scripts/lvmconf.sh $RPM_BUILD_ROOT/usr/sbin/lvmconf install -m 0755 scripts/lvmconf.sh $RPM_BUILD_ROOT/usr/sbin/lvmconf
@ -153,9 +152,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/vgscan.8.gz %{_mandir}/man8/vgscan.8.gz
%{_mandir}/man8/vgsplit.8.gz %{_mandir}/man8/vgsplit.8.gz
%dir /etc/lvm %dir /etc/lvm
%ghost /etc/lvm/.cache %ghost /etc/lvm/cache/.cache
%config(noreplace) /etc/lvm/lvm.conf %config(noreplace) /etc/lvm/lvm.conf
/etc/lvm/backup /etc/lvm/backup
/etc/lvm/cache
/etc/lvm/archive /etc/lvm/archive
/var/lock/lvm /var/lock/lvm
@ -194,6 +194,15 @@ fi
%changelog %changelog
* Thu Mar 08 2007 Alasdair Kergon <agk@redhat.com> - 2.02.23-1
- Fix vgrename active LV check to ignore differing vgids.
- Fix two more segfaults if an empty config file section encountered.
- Fix a leak in a reporting error path.
- Add devices/cache_dir & devices/cache_file_prefix, deprecating devices/cache.
* Tue Feb 27 2007 Alasdair Kergon <agk@redhat.com> - 2.02.22-3
- Move .cache file to /etc/lvm/cache.
* Wed Feb 14 2007 Alasdair Kergon <agk@redhat.com> - 2.02.22-2 * Wed Feb 14 2007 Alasdair Kergon <agk@redhat.com> - 2.02.22-2
- Rebuild after device-mapper package split. - Rebuild after device-mapper package split.

View File

@ -1 +1 @@
2dd9dad43bde244a4ff0e406b5cfb8c5 LVM2.2.02.22.tgz a0e631f7bdb75fb4d6486d2b1fa64a40 LVM2.2.02.23.tgz

View File

@ -1 +1 @@
LVM2.2.02.22.tgz LVM2.2.02.23.tgz