From nobody@FreeBSD.org  Mon Nov  9 22:44:28 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 584A01065693
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Nov 2009 22:44:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 46E758FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Nov 2009 22:44:28 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nA9MiR0E037339
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Nov 2009 22:44:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nA9MiRW7037338;
	Mon, 9 Nov 2009 22:44:27 GMT
	(envelope-from nobody)
Message-Id: <200911092244.nA9MiRW7037338@www.freebsd.org>
Date: Mon, 9 Nov 2009 22:44:27 GMT
From: Jason Helfman <jhelfman@e-e.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: added unset variable information to rc.conf man page for "hostname"
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140434
>Category:       docs
>Synopsis:       [patch] added unset variable information to rc.conf(5) man page for "hostname"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 09 22:50:03 UTC 2009
>Closed-Date:    Sun Nov 15 23:54:37 UTC 2009
>Last-Modified:  Mon Nov 16 00:00:06 UTC 2009
>Originator:     Jason Helfman
>Release:        7.2-RELEASE-p4
>Organization:
Experts Exchange
>Environment:
FreeBSD eggman.experts-exchange.com 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 12:21:39 UTC 2009     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
After performing an automated installation of FreeBSD 7.2, I found that the console login showed "Amnesiac."

For some reason, I thought this was associated to a timezone, but found it was the hostname value if unset in /etc/rc.conf.

>How-To-Repeat:
Remove hostname value from /etc/rc.conf, and reboot.
>Fix:
Add hostname value to /etc/rc.conf, and reboot.

Patch attached with submission follows:

--- rc.conf.5.orig	2009-11-09 14:29:55.000000000 -0800
+++ rc.conf.5	2009-11-09 14:35:09.000000000 -0800
@@ -346,7 +346,8 @@
 .Pq Vt str
 The fully qualified domain name (FQDN) of this host on the network.
 This should almost certainly be set to something meaningful, even if
-there is no network connection.
+there is no network connection. If this value is unset, your console 
+login will display a default hostname value of "Amnesiac."
 If
 .Xr dhclient 8
 is used to set the hostname via DHCP,


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: dougb 
State-Changed-When: Tue Nov 10 03:10:50 UTC 2009 
State-Changed-Why:  

I committed similar text to HEAD and will MFC it soon. 


Thanks! 

Doug 


Responsible-Changed-From-To: freebsd-doc->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Tue Nov 10 03:10:50 UTC 2009 
Responsible-Changed-Why:  

I'll handle this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140434 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140434: commit references a PR
Date: Tue, 10 Nov 2009 03:19:02 +0000 (UTC)

 Author: dougb
 Date: Tue Nov 10 03:18:49 2009
 New Revision: 199127
 URL: http://svn.freebsd.org/changeset/base/199127
 
 Log:
   Add a note about no hostname leading to "Amnesiac" on the console
   
   The text is inspired by the PR, but more in line with the existing text
   
   PR:		docs/140434
   Submitted by:	Jason Helfman <jhelfman@e-e.com>
 
 Modified:
   head/share/man/man5/rc.conf.5
 
 Modified: head/share/man/man5/rc.conf.5
 ==============================================================================
 --- head/share/man/man5/rc.conf.5	Tue Nov 10 01:12:00 2009	(r199126)
 +++ head/share/man/man5/rc.conf.5	Tue Nov 10 03:18:49 2009	(r199127)
 @@ -351,6 +351,9 @@ If
  .Xr dhclient 8
  is used to set the hostname via DHCP,
  this variable should be set to an empty string.
 +If this value remains unset when the system is done booting
 +your console login will display a default hostname of
 +.Dq Amnesiac.
  .It Va nisdomainname
  .Pq Vt str
  The NIS domain name of this host, or
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140434: commit references a PR
Date: Sun, 15 Nov 2009 23:48:41 +0000 (UTC)

 Author: dougb
 Date: Sun Nov 15 23:48:29 2009
 New Revision: 199300
 URL: http://svn.freebsd.org/changeset/base/199300
 
 Log:
   MFC r199127:
   Add a note about no hostname leading to "Amnesiac" on the console
   
   The text is inspired by the PR, but more in line with the existing text
   
   PR:		docs/140434
   Submitted by:	Jason Helfman <jhelfman@e-e.com>
   
   MFC r199152:
   s/a default/the default/
   
   Submitted by:	remko
   
   MFC r199299:
   In r199127/r199152 I forgot to bump .Dd
 
 Modified:
   stable/8/share/man/man5/rc.conf.5
 Directory Properties:
   stable/8/share/man/man5/   (props changed)
 
 Modified: stable/8/share/man/man5/rc.conf.5
 ==============================================================================
 --- stable/8/share/man/man5/rc.conf.5	Sun Nov 15 23:31:07 2009	(r199299)
 +++ stable/8/share/man/man5/rc.conf.5	Sun Nov 15 23:48:29 2009	(r199300)
 @@ -24,7 +24,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd September 17, 2009
 +.Dd November 11, 2009
  .Dt RC.CONF 5
  .Os
  .Sh NAME
 @@ -351,6 +351,9 @@ If
  .Xr dhclient 8
  is used to set the hostname via DHCP,
  this variable should be set to an empty string.
 +If this value remains unset when the system is done booting
 +your console login will display the default hostname of
 +.Dq Amnesiac.
  .It Va ipv6_enable
  .Pq Vt bool
  Enable support for IPv6 networking.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: dougb 
State-Changed-When: Sun Nov 15 23:53:21 UTC 2009 
State-Changed-Why:  

I've MFCed this update through RELENG_7. I don't plan to MFC it to 
RELENG_6 since there is not likely to be another release on that branch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140434 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140434: commit references a PR
Date: Sun, 15 Nov 2009 23:52:17 +0000 (UTC)

 Author: dougb
 Date: Sun Nov 15 23:51:59 2009
 New Revision: 199302
 URL: http://svn.freebsd.org/changeset/base/199302
 
 Log:
   MFC r199127:
   Add a note about no hostname leading to "Amnesiac" on the console
   
   The text is inspired by the PR, but more in line with the existing text
   
   PR:		docs/140434
   Submitted by:	Jason Helfman <jhelfman@e-e.com>
   
   MFC r199152:
   s/a default/the default/
   
   Submitted by:	remko
   
   MFC r199299:
   In r199127/r199152 I forgot to bump .Dd
 
 Modified:
   stable/7/share/man/man5/rc.conf.5   (contents, props changed)
 Directory Properties:
   stable/7/share/man/man5/   (props changed)
 
 Modified: stable/7/share/man/man5/rc.conf.5
 ==============================================================================
 --- stable/7/share/man/man5/rc.conf.5	Sun Nov 15 23:49:28 2009	(r199301)
 +++ stable/7/share/man/man5/rc.conf.5	Sun Nov 15 23:51:59 2009	(r199302)
 @@ -24,7 +24,7 @@
  .\"
  .\" $FreeBSD$
  .\"
 -.Dd January 25, 2009
 +.Dd November 11, 2009
  .Dt RC.CONF 5
  .Os
  .Sh NAME
 @@ -344,6 +344,9 @@ If
  .Xr dhclient 8
  is used to set the hostname via DHCP,
  this variable should be set to an empty string.
 +If this value remains unset when the system is done booting
 +your console login will display the default hostname of
 +.Dq Amnesiac.
  .It Va ipv6_enable
  .Pq Vt bool
  Enable support for IPv6 networking.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
