Re: Make hardlinking kernel-devel optional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 31, 2006 at 07:05:53PM -0500, Ignacio Vazquez-Abrams wrote:
 > On Tue, 2006-01-31 at 17:21 -0500, Dave Jones wrote:
 > > On Tue, Jan 31, 2006 at 07:44:17PM +0100, Ralf Ertzinger wrote:
 > >  > Hi.
 > >  > 
 > >  > I't like to request to make the hardlink stage kernel-devel does on every
 > >  > install optional. It takes a damn lot of time on my not-too-fast machines,
 > >  > I do not exactly care about the saved disk space, and given the rate of
 > >  > kernel changes in rawhide there are a lot of wasted CPU cycles there.
 > > 
 > > only if you have a huge number of kernels installed, which shouldn't be the case.
 > 
 > Or if you build kernel modules against multiple kernel VR's.
 > 
 > >  > There is a /etc/sysconfig/kernel, how about dropping a "HARDLINK=yes/no"
 > >  > there?
 > > 
 > > It would mean adding parsing to the kernel spec file, which I'm not entirely
 > > enthusiastic about, especially for something that isn't the common case.
 > 
 > %post
 > [ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
 > if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ] ; then
 >   pushd /usr/src/kernels/2.6.15-1.1823_FC4-i686 > /dev/null
 >   /usr/bin/find . -type f | while read f; do hardlink
 > -c /usr/src/kernels/*FC*/$f $f ; done
 >   popd > /dev/null
 > fi

Removing the Prereq: /usr/sbin/hardlink from the spec (which I just did in CVS)
should have the effect that you can now rpm -e hardlink, and it'll
do what you want, whilst leaving it enabled for users by default.

		Dave

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux