Re: RFC: etcupdate tool in base?

From: John Baldwin <jhb_at_freebsd.org>
Date: Fri, 9 Jul 2010 17:15:03 -0400
On Friday, July 09, 2010 4:21:51 pm John Baldwin wrote:
> On Thursday, June 10, 2010 1:46:59 pm John Baldwin wrote:
> > I've had several folks ask me recently about importing etcupdate 
> > (http://www.FreeBSD.org/~jhb/etcupdate) into the base system as an alternate 
> > tool for updating /etc during upgrades.  Do folks have any strong objections 
> > to doing so?  More details about how it works and an HTML version of the 
> > manpage can be found at the URL above.
> 
> I finally committed a port to ports/sysutils/etcupdate for this today.  If at 
> some point lots of folks call for an import we can revisit this then.  One 
> small advantage of importing is that we could have make release automatically 
> bootstrap it similar to how we do now for mtree databases (I do this in my 
> FooBSD at work, it is a one-line patch to the release Makefile).

For those who are interested, here is the patch to src/release/Makefile.
This assumes that etcupdate is available in the chroot during 'make release'.
I do this in my FooBSD by having it be part of the base system.

Index: release/Makefile
===================================================================
--- release/Makefile    (.../mirror/FreeBSD/stable/7)   (revision 210305)
+++ release/Makefile    (.../stable/7)  (revision 210305)
_at__at_ -648,6 +651,8 _at__at_
        cd ${.CURDIR}/.. && ${CROSSMAKE} distrib-dirs DESTDIR=${RD}/trees/base
        cd ${.CURDIR}/.. && ${CROSSMAKE} ${WORLD_FLAGS} distributeworld \
            DISTDIR=${RD}/trees
+       etcupdate extract -B -d "${RD}/trees/base/var/db/etcupdate" \
+           -M "${CROSSENV}"
        sh ${.CURDIR}/scripts/mm-mtree.sh -F "${CROSSENV}" -D "${RD}/trees/base"
        touch ${.TARGET}
 

-- 
John Baldwin
Received on Fri Jul 09 2010 - 19:15:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC