rm -f %{_libdir}/lustre/python/Lustre/*.pyc
%post modules
-if [ ! -e /dev/obd ]; then
- mknod /dev/obd c 10 241
-fi
-if [ ! -e /dev/portals ]; then
- mknod /dev/portals c 10 240
-fi
if [ -f /boot/System.map-%{kversion} ]; then
depmod -ae -F /boot/System.map-%{kversion} %{kversion} || exit 0
else
f=/etc/modprobe.conf$ext
if [ -f $f ] && ! grep llite $f >/dev/null 2>/dev/null ; then
cat >> $f <<EOF
-install kptlrouter modprobe portals ; modprobe --ignore-install kptlrouter
-install ptlrpc modprobe ksocknal ; modprobe --ignore-install ptlrpc
-install llite modprobe lov osc ; modprobe --ignore-install llite
alias lustre llite
EOF
break
f=/etc/modules.conf
if [ -f $f ] && ! grep llite $f >/dev/null 2>/dev/null ; then
cat >> $f <<EOF
-add below kptlrouter portals
-add below ptlrpc ksocknal
-add below llite lov osc
alias lustre llite
EOF
fi