Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2003 19:05:13 +0100 (CET)
From:      Christian Weisgerber <naddy@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/48157: config.8: recover kernel conf from INCLUDE_CONFIG_FILE
Message-ID:  <200302101805.h1AI5DmA077176@kemoauc.mips.inka.de>

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

>Number:         48157
>Category:       bin
>Synopsis:       config.8: recover kernel conf from INCLUDE_CONFIG_FILE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 10 10:40:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 5.0-CURRENT alpha
>Organization:
>Environment:
System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Feb 5 13:01:08 CET 2003 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha

>Description:

"options INCLUDE_CONFIG_FILE" allows the inclusion of the kernel
configuration file into the kernel image.  config.8 suggests the
command

    strings kernel | grep ___

to recover the original configuration file.  Instead I propose this
command

    strings kernel | sed -n 's/^___//p'

which is less likely to match false positives and removes the
protecting leading underscores.

>How-To-Repeat:

>Fix:

Index: src/usr.sbin/config/config.8
===================================================================
RCS file: /home/ncvs/src/usr.sbin/config/config.8,v
retrieving revision 1.37
diff -u -r1.37 config.8
--- src/usr.sbin/config/config.8	12 Dec 2002 17:26:02 -0000	1.37
+++ src/usr.sbin/config/config.8	10 Feb 2003 17:58:18 -0000
@@ -164,7 +164,7 @@
 can be used to extract it from a kernel:
 to extract the configuration information, use the command
 .Pp
-.Dl "strings kernel | grep ___"
+.Dl "strings kernel | sed -n 's/^___//p'"
 .Sh DEBUG KERNELS
 Traditional
 .Bx
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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