bin/89817: [patch] let sysinstall preserve sysctl.conf too!

Edwin Groothuis edwin at mavetju.org
Thu Dec 1 21:10:31 GMT 2005


>Number:         89817
>Category:       bin
>Synopsis:       [patch] let sysinstall preserve sysctl.conf too!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 01 21:10:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD janus.barnet.com.au 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

>Description:

After upgrading our test postgresql server, the databases didn't
come back online because of the dreaded shared memory problem.

Checking /etc/sysctl.conf, we saw it was reverted during the upgrade
of the system.

>How-To-Repeat:

- make modifications to /etc/sysctl.conf
- upgrade to 6.0 via the binary upgrade
- check /etc/sysctl.conf

>Fix:

--- src/usr.sbin/sysinstall/installUpgrade.c.orig       Fri Dec  2 08:01:00 2005
+++ src/usr.sbin/sysinstall/installUpgrade.c    Fri Dec  2 08:01:01 2005
@@ -118,6 +118,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 },

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list