Whamcloud - gitweb
b=15057 fix file ownerships in lustre-modules RPM
authorBrian J. Murrell <brian@sun.com>
Tue, 30 Mar 2010 18:40:46 +0000 (11:40 -0700)
committerRobert Read <rread@sun.com>
Tue, 30 Mar 2010 18:40:46 +0000 (11:40 -0700)
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 144a638..868e8f8 100644 (file)
@@ -188,7 +188,7 @@ if [ -d $RPM_BUILD_ROOT%{_libdir}/lustre/liblustre/tests ] ; then
 fi
 
 pushd $RPM_BUILD_ROOT >/dev/null
 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
 popd >/dev/null
 
 %files -f lustre.files