[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: help understanding RH kernel spec
- From: "Mike A. Harris" <mharris opensourceadvocate org>
- To: RPM List <rpm-list redhat com>
- Subject: Re: help understanding RH kernel spec
- Date: Mon, 9 Jul 2001 23:30:07 -0400 (EDT)
On Mon, 9 Jul 2001, Alan Eldridge wrote:
>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.*
Executed before uninstallation
>%preun smp
>/sbin/modprobe loop 2> /dev/null > /dev/null
>rm -f /lib/modules/%{KVERREL}smp/modules.*
Same for SMP kernel.
>[ other %preun packagename sections omitted ]
Same for each other subpackage.
>%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?
The one it is in. ;o) Each section ends where the next one
begins, so look above it until you see the section it is in.
----------------------------------------------------------------------
Mike A. Harris - Linux advocate - Open Source advocate
Opinions and viewpoints expressed are solely my own.
----------------------------------------------------------------------
If at first you don't succeed, call it version 1.0
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]