RFC: etcupdate tool in base?
John Baldwin
jhb at freebsd.org
Fri Jul 9 21:15:08 UTC 2010
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
More information about the freebsd-current
mailing list