Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster (8)

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Wed, 11 Jul 2007 17:06:43 -0700
Garrett Cooper wrote:
> Doug Barton wrote:
>> Gaspar Chilingarov wrote:
>>
>>  
>>> Well another question -- is it possible teach somehow mergemaster, that
>>> it should never touch passwd, groups, /etc/ttys or bunch of another
>>> files?
>>>     
>>
>> Sure, you just do the opposite of what I did in the last script. If
>> the file doesn't exist in the temproot when it's time to start
>> comparing, mergemaster will never do anything with it. So here is some
>> more out of the script that I actually use:
>>
>> #!/bin/sh
>> # NOTE: No PATH needed, because mm's PATH is already draconian enough
>> case "${PRE_WORLD}" in
>> '')     rm -f /etc/defaults/pccard.conf
>>         rm -f ${TEMPROOT}/etc/motd
>>         rm -f ${TEMPROOT}/etc/printcap
>>     rm -f ${TEMPROOT}/etc/namedb/named.*
>>         ;;
>> esac
>>
>>   
> What if a user or group was added to /etc/group or /etc/passwd that was
> required for the updated version of the OS? I would see this behavior a
> bit counterproductive in this case.

That's what the -p (PRE_WORLD) option is for.

Doug

-- 

    This .signature sanitized for your protection
Received on Wed Jul 11 2007 - 22:14:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC