On Wed, Feb 08, 2006 at 09:50:35PM -0800, Joe Van Dyk wrote:
I'm creating an RPM that creates a new /etc/auto.master file (for
automounting directories).
Currently, the autofs package owns this file. So when I try to
install my RPM that overwrites /etc/auto.master, it complains
about a
conflict between my RPM and the autofs RPM.
What's the correct resolution here?
You can consider using %trigger(un) scripts, they were designed for
inter=package pre/post (un)install scripts. Note that the use of
trigger scripts does not comply with the LSB, but it works fine and
if the other package gets upgraded (e.g., new services file), the
script is running again. Of course, you have to write that scripts
very carefully, idempotent, etc.