Whamcloud - gitweb
b=15057 fix file ownerships in lustre-modules RPM
authorBrian J. Murrell <brian@sun.com>
Wed, 10 Feb 2010 18:47:45 +0000 (13:47 -0500)
committerJohann Lombardi <johann@sun.com>
Thu, 11 Feb 2010 17:40:56 +0000 (18:40 +0100)
The files in the lustre-modules RPM were not being set with a correct
owner and were therefore just using what was on the filesystem.

i=yangsheng
i=wangyb

lustre.spec.in

index 2ae5b3b..c9d38e1 100644 (file)
@@ -188,7 +188,7 @@ if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/liblustre/tests ] ; then
 fi
 
 pushd $RPM_BUILD_ROOT >/dev/null
-find lib/modules/%{kversion}/kernel -type f | awk "!/($modules_excludes)/ {print \"/\"\$0}" >>$RPM_BUILD_DIR/lustre-%{version}/lustre-modules.files
+find lib/modules/%{kversion}/kernel -type f | awk "!/($modules_excludes)/ {print \"%attr(-, root, root) /\"\$0}" >>$RPM_BUILD_DIR/lustre-%{version}/lustre-modules.files
 popd >/dev/null
 
 %files -f lustre.files