mergemaster just screwed me

Sean McNeil sean at mcneil.com
Thu Oct 7 16:55:19 PDT 2004


On Thu, 2004-10-07 at 16:47, Doug Barton wrote:
> On Thu, 7 Oct 2004, Sean McNeil wrote:
> 
> >> 1. How do you usually invoke mergemaster?
> >> 2. Do you have a .mergemasterrc file?
> >> 3. Do you run a MM_PRE_COMPARE_SCRIPT?
> >> 4. Do you have any *_BIND_* options in /etc/make.conf?
> >> 5. Output of 'ls -la /etc/namedb /var/named/etc/namedb'
> >
> > 1. I invoke by simply typing mergemaster.
> > 2. yes, the contents are:
> >
> > MM_PRE_COMPARE_SCRIPT=/usr/local/bin/mergemaster_precompare
> >
> > 3. The contents of /usr/local/bin/mergemaster_precompare are...
> >
> > #!/bin/sh
> >
> > # NOTE: No PATH needed, because mm's PATH is already draconian enough
> >
> > case "${PRE_WORLD}" in
> > '')
> >        rm -f ${TEMPROOT}/etc/motd
> >        rm -f ${TEMPROOT}/etc/hosts ${TEMPROOT}/etc/hosts.allow
> >        rm -f ${TEMPROOT}/etc/mail/mailer.conf
> >        rm -f ${TEMPROOT}/etc/ssl/openssl.cnf
> >        rm -f ${TEMPROOT}/etc/namedb/PROTO.*
> > ${TEMPROOT}/etc/namedb/named.* \
> >              ${TEMPROOT}/etc/namedb/make-localhost
> >        ;;
> > esac
> >
> > ARGH!!!!! That must be it.  Deleting them in TEMPROOT causes them to go
> > away in /var/named?
> >
> > Thanks for the insight.  Now, is what I did here wrong or is this an
> > issue with the way things are moved around?
> 
> Yeah, that's what I was afraid of. The change that happened in version 
> 1.334 of src/etc/Makefile symlinked the /etc/namedb in the temproot 
> directory to the live directory on the system.
> 
> Please try the attached patch and make sure that it works for you, then 
> let me know the results.
> 
> Doug

The provided patch allows me to use my mergemaster_precompare.  Many,
many thanks!

Sean

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20041007/35e28f88/attachment.bin


More information about the freebsd-current mailing list