[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

help understanding RH kernel spec



I'm having a bit of a time trying to understand what a particular section of
code means, and when it's run:

# Allow clean removal of modules directory
%preun 
/sbin/modprobe loop 2> /dev/null > /dev/null
rm -f /lib/modules/%{KVERREL}/modules.*

%preun smp
/sbin/modprobe loop 2> /dev/null > /dev/null
rm -f /lib/modules/%{KVERREL}smp/modules.*

[ other %preun packagename sections omitted ]

%preun BOOTtape
/sbin/modprobe loop 2> /dev/null > /dev/null
rm -f /lib/modules/%{KVERREL}BOOTtape/modules.*

%ifarch i386 i586 i686 athlon
if [ -x /sbin/lilo -a -f /etc/lilo.conf ]; then
   /sbin/lilo > /dev/null 2>&1
   exit 0
fi
%endif
	      
What section or package does that %ifarch ... %endif section bind to?


-- 
Alan Eldridge
from std_disclaimer import *





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []