[PATCH] spec: fix hardlink usage with RHEL

Aristeu Rozanski aris at redhat.com
Mon Jun 8 18:43:41 UTC 2009


Currently, the spec has *fc* hardcoded to the hardlink command. Not sure if
it wouldn't be better just use /usr/src/kernels/*.

---
 kernel.spec |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

--- spec-diffs.orig/kernel.spec	2009-06-08 12:35:34.000000000 -0400
+++ spec-diffs/kernel.spec	2009-06-08 14:36:12.000000000 -0400
@@ -1630,7 +1630,12 @@ if [ "$HARDLINK" != "no" -a -x /usr/sbin
 then\
     (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
      /usr/bin/find . -type f | while read f; do\
-       hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
+       if [ -n "%{?rhel}" ]\
+       then\
+         hardlink -c /usr/src/kernels/*.el*.*/$f $f\
+       else\
+         hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
+       fi\
      done)\
 fi\
 %{nil}




More information about the Fedora-kernel-list mailing list