Bug 77001 - sysinstall(8): sysinstall binary upgrade clobbers /etc/login.conf.db
Summary: sysinstall(8): sysinstall binary upgrade clobbers /etc/login.conf.db
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.11-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 11:10 UTC by Martin Kammerhofer
Modified: 2015-11-10 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kammerhofer 2005-02-02 11:10:24 UTC
Going sysinstall's binary upgrade route from 4.10 to 4.11 I noticed
that while /etc/login.conf was preserved /etc/login.conf.db has been
overwritten.

Fix: 1.) Run
# cap_mkdb /etc/login.conf
after the binary upgrade.

2.) Fix sysinstall with the patch below.
Note: Patch is against RELENG_4 but can be equally well applied
against the repo copied sysinstall in
src/usr.sbin/sysinstall/installUpgrade.c too.

<------------------------------cut here------------------------------


--=_524jtnodpi4g----c4sV6aeBcgIK3tCbn2RhN3FkZxActNY9Ip0UMUVNfjy9cEtn
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /usr/src/release/sysinstall/installUpgrade.c~	Mon Jun 10 06:28:53 2002
+++ /usr/src/release/sysinstall/installUpgrade.c	Wed Feb  2 09:54:01 2005
@@ -89,6 +89,7 @@
    { JUST_COPY,		"localtime",		TRUE, NULL },
    { JUST_COPY,		"login.access",		TRUE, NULL },
    { JUST_COPY,		"login.conf",		TRUE, NULL },
+   { JUST_COPY,		"login.conf.db",	TRUE, NULL },
    { JUST_COPY,		"mail",			TRUE, NULL },
    { JUST_COPY,		"mail.rc",		TRUE, NULL },
    { JUST_COPY,		"make.conf",		TRUE, NULL },
How-To-Repeat: Do a binary system upgrade.
Comment 1 Ceri Davies freebsd_committer freebsd_triage 2005-02-23 20:11:05 UTC
Adding to audit trail, from misfiled PR 77909:

Date: Tue, 22 Feb 2005 08:41:08 +0100
From: dada@sbox.tugraz.at
Message-Id: <20050222084108.46vincqk0s0kgo4k@webmail.tugraz.at>

 There are other lost-on-bin-upgrade files in /etc too.
 This PR should probably merged into PR bin/20282
 
 --- /usr/src/release/sysinstall/installUpgrade.c~	Mon Jun 10 06:28:53 2002
 +++ /usr/src/release/sysinstall/installUpgrade.c	Sat Feb 12 14:05:41 2005
 @@ -120,6 +120,7 @@
     { JUST_COPY,		"skeykeys",		TRUE, NULL },
     { JUST_COPY,		"spwd.db",		TRUE, NULL },
     { JUST_COPY,		"ssh",			TRUE, NULL },
 +   { JUST_COPY,		"sysctl.conf",		TRUE, NULL },
     { JUST_COPY,		"syslog.conf",		TRUE, NULL },
     { JUST_COPY,		"ttys",			TRUE, NULL },
     { JUST_COPY,		"uucp",			TRUE, NULL },
Comment 2 randi freebsd_committer freebsd_triage 2009-06-06 23:52:17 UTC
Responsible Changed
From-To: freebsd-bugs->randi

Grabbing this - verified, bug still exists.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-06-29 06:52:04 UTC
Responsible Changed
From-To: randi->freebsd-sysinstall

back to mailing list.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:07:14 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 5 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:16 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.