Re: Make hardlinking kernel-devel optional

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

 



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

-- 
Ignacio Vazquez-Abrams <ivazquez@xxxxxxxxxxxx>
http://fedora.ivazquez.net/

gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
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