Make hardlinking kernel-devel optional
Ignacio Vazquez-Abrams
ivazquez at ivazquez.net
Wed Feb 1 00:05:53 UTC 2006
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 at ivazquez.net>
http://fedora.ivazquez.net/
gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060131/30cc3235/attachment.sig>
More information about the fedora-devel-list
mailing list