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

Re: Make hardlinking kernel-devel optional

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.

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

Ignacio Vazquez-Abrams <ivazquez ivazquez net>

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

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

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