RFT: bin/106642: [patch] Allow excluding certain
files from mergemaster (8)
Doug Barton
dougb at FreeBSD.org
Thu Jul 12 00:14:11 UTC 2007
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
More information about the freebsd-current
mailing list