Date: Wed, 11 Jul 2007 17:06:43 -0700 From: Doug Barton <dougb@FreeBSD.org> To: Garrett Cooper <youshi10@u.washington.edu> Cc: Pieter de Goeje <pieter@degoeje.nl>, Gaspar Chilingarov <casper@web.am>, freebsd-current@freebsd.org Subject: Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster (8) Message-ID: <46957093.2030701@FreeBSD.org> In-Reply-To: <46955C9E.6090101@u.washington.edu> References: <20070419133550.GA65054@tirith.brixandersen.dk> <20070419200929.GA70735@tirith.brixandersen.dk> <4693BC3E.1050605@web.am> <200707110115.42139.pieter@degoeje.nl> <469417CB.7010705@FreeBSD.org> <4694AAF1.6050302@web.am> <46951CC2.5050602@FreeBSD.org> <46955C9E.6090101@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46957093.2030701>