Packaging the FreeBSD base system with pkg(8)
Baptiste Daroussin
bapt at FreeBSD.org
Tue Apr 5 14:58:37 UTC 2016
On Tue, Apr 05, 2016 at 12:22:49PM +0200, Gary Jennejohn wrote:
> On Tue, 5 Apr 2016 10:22:04 +0100
> David Chisnall <theraven at FreeBSD.org> wrote:
>
> > On 5 Apr 2016, at 10:07, Gergely Czuczy <gergely.czuczy at harmless.hu> wrote:
> > >
> > > Also, quite often entries from the base system are changed
> > > manually, think of root's/toor's password. Are such cases
> > > going to be dealt with properly between upgrades, including
> > > self-built-and-packaged base systems? Currently it can be a
> > > PITA with mergemaster to handle things like master.passwd
> > > properly between upgrades, automation so far wasn't famous on
> > > doing it properly.
> >
> > Mergemaster uses a 2-way merge. It has the version that you
> > have installed and the version that's being proposed for
> > installation. Etcupdate and pkg perform a 3-way merge. It has
> > the pristine version, the version that you have made changes
> > to, and the new version. If you have changed an entry and so
> > has the package, then you will get a conflict that you have to
> > resolve manually. If you have added lines and so has the
> > upstream version, then that should cleanly apply. Similarly,
> > if you and upstream have both modified different lines, then
> > there should be no problem.
> >
>
> Will there be an option not to merge? I never update /etc when
> I do installworld because what I have works for me and I see no
> need to make any changes to a working system.
Yes pkg has an option to not merge and will give you some .pkgnew files
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160405/61e52f6e/attachment.sig>
More information about the freebsd-current
mailing list