Bug 140434

Summary: [patch] added unset variable information to rc.conf(5) man page for "hostname"
Product: Documentation Reporter: Jason <jhelfman>
Component: Books & ArticlesAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jason 2009-11-09 22:50:03 UTC
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.

Fix: Add hostname value to /etc/rc.conf, and reboot.

Patch attached with submission follows:
How-To-Repeat: Remove hostname value from /etc/rc.conf, and reboot.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2009-11-10 03:10:50 UTC
State Changed
From-To: open->patched


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


Thanks!
Comment 2 Doug Barton freebsd_committer freebsd_triage 2009-11-10 03:10:50 UTC
Responsible Changed
From-To: freebsd-doc->dougb


I'll handle this one.
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-11-10 03:19:02 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"
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-11-15 23:48:41 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"
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-11-15 23:52:17 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"
Comment 6 Doug Barton freebsd_committer freebsd_triage 2009-11-15 23:53:21 UTC
State Changed
From-To: patched->closed


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.