Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  2 Dec 2005 08:04:46 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/89817: [patch] let sysinstall preserve sysctl.conf too!
Message-ID:  <20051201210446.8972462B0@k7.mavetju>
Resent-Message-ID: <200512012110.jB1LA2cI081541@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051201210446.8972462B0>