Date: Fri, 9 Jul 2010 17:15:03 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-current@freebsd.org Subject: Re: RFC: etcupdate tool in base? Message-ID: <201007091715.03922.jhb@freebsd.org> In-Reply-To: <201007091621.51288.jhb@freebsd.org> References: <201006101346.59824.jhb@freebsd.org> <201007091621.51288.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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) @@ -648,6 +651,8 @@ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007091715.03922.jhb>