Fix 2.6 kernel requirement

This commit is contained in:
Elliot Lee 2004-10-25 15:09:20 +00:00
parent c86e65bed4
commit 98bbbc6660

View File

@ -12,6 +12,7 @@ BuildRequires: libselinux-devel
BuildRequires: libtermcap-devel
BuildRequires: ncurses-devel
BuildRequires: readline-devel
Requires: kernel >= 2.6
Conflicts: lvm < 1.0.3-19
Obsoletes: lvm < 1.0.3-19
@ -42,10 +43,6 @@ ln -s lvm.static $RPM_BUILD_ROOT/sbin/pvscan
ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgchange
ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgscan
%pre
[[ `/bin/uname -r` < 2.6 ]] && echo "You need to be running a 2.6 kernel to install lvm2." && exit 1
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
@ -63,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/lvm/lvm.conf
%changelog
* Mon Oct 25 2004 Elliot Lee <sopwith@redhat.com> - 2.00.25-1.01
- Fix 2.6 kernel requirement
* Wed Sep 29 2004 Alasdair Kergon <agk@redhat.com> - 2.00.25-1
- Fix vgmknodes return code & vgremove locking.