Discussion:
postinstall needed after etcmanage?
J. Lewis Muir
2014-09-24 19:19:46 UTC
Permalink
Hello.

In the NetBSD Guide, section 33.4.3, "Using etcmanage instead of
etcupdate" [1], it says that to use etcmanage instead of etcupdate,
one should run postinstall after running etcmanage. Is this still
true? INSTALL-NetBSD from (pkgsrc) sysutils/etcmanage (version 0.8.2)
runs etcmanage but does not run postinstall, so I'm wondering whether I
should run postinstall after running INSTALL-NetBSD (as well as for the
case of running etcmanage by hand).

Thank you!

Lewis

[1] http://netbsd.org/docs/guide/en/chap-updating.html#updating-etcmanage
Greg Troxel
2014-09-24 19:39:48 UTC
Permalink
Post by J. Lewis Muir
In the NetBSD Guide, section 33.4.3, "Using etcmanage instead of
etcupdate" [1], it says that to use etcmanage instead of etcupdate,
one should run postinstall after running etcmanage. Is this still
true? INSTALL-NetBSD from (pkgsrc) sysutils/etcmanage (version 0.8.2)
runs etcmanage but does not run postinstall, so I'm wondering whether I
should run postinstall after running INSTALL-NetBSD (as well as for the
case of running etcmanage by hand).
[1] http://netbsd.org/docs/guide/en/chap-updating.html#updating-etcmanage
I was not really aware that this was described in the official guide.
But, the description is off, because it doesn't explain about the
--update argument or unpacking the new etc sets.

Basically, there are different philosophies about handling files in etc,
and this gives rise to the different tools. In particular, etcmanage
leaves files alone rather than updates them when they have been modified
locally. And, etcmanage does not prompt to make changes, ever - this is
important when running it as part of automated upgrades.

After I update with etcmanage, I often run "postinstall check", and then
sometimes "postinstall fix" after deciding that everything it wants to
fix is ok. Mostly what postinstall wants to fix are removing obsolete
files and adding new uid/gid entries.

Perhaps INSTALL-NetBSD should run "postinstall check".
J. Lewis Muir
2014-09-24 21:17:24 UTC
Permalink
Post by Greg Troxel
After I update with etcmanage, I often run "postinstall check", and
then sometimes "postinstall fix" after deciding that everything it
wants to fix is ok. Mostly what postinstall wants to fix are removing
obsolete files and adding new uid/gid entries.
Hi, Greg.

Thanks for the info. OK, I ran "postinstall check", it found a few
things (and I found a bug which I fixed and reported to the list in a
separate email), I was OK with it fixing the things it found, so I let
it fix them, and it worked nicely.

Thank you!

Lewis

Loading...