Bug 108101

Summary: /boot/default/loader.conf contains an incorrect comment
Product: Documentation Reporter: Dr. Markus Waldeck <waldeck>
Component: Books & ArticlesAssignee: John Baldwin <jhb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dr. Markus Waldeck 2007-01-18 17:20:19 UTC
/boot/default/loader.conf following lines:

#autoboot_delay="10"            # Delay in seconds before autobooting,
                                # set to -1 if you don't want user to be
                                # allowed to interrupt autoboot process and
                                # escape to the loader prompt

I changed autoboot_delay to "-1" got the following effect.
The boot process stops at the menu and waits until input.
and a user could select from the menu.
Comment 1 Brad Davis freebsd_committer freebsd_triage 2010-09-06 16:12:57 UTC
Confirmed.

Trying to find out if we can fix the loader, rather than remove the
comment.


Regards,
Brad Davis
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-09-08 21:10:44 UTC
Author: jhb
Date: Wed Sep  8 20:10:29 2010
New Revision: 212338
URL: http://svn.freebsd.org/changeset/base/212338

Log:
  If autoboot_delay is set to -1, boot immediately without checking for
  a keypress to match the behavior of the loader.
  
  PR:		docs/108101
  Submitted by:	Wayne Sierke  ws of au.dyndns.ws
  Tested by:	brd
  MFC after:	1 week

Modified:
  head/sys/boot/forth/beastie.4th

Modified: head/sys/boot/forth/beastie.4th
==============================================================================
--- head/sys/boot/forth/beastie.4th	Wed Sep  8 20:10:24 2010	(r212337)
+++ head/sys/boot/forth/beastie.4th	Wed Sep  8 20:10:29 2010	(r212338)
@@ -240,7 +240,10 @@ set-current
 		drop
 		10
 	else
-		0 0 2swap >number drop drop drop
+		2dup s" -1" compare 0= if
+			0 boot
+		then
+		0 s>d 2swap >number 2drop drop
 	then
 	begin
 		dup tkey
_______________________________________________
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 3 John Baldwin freebsd_committer freebsd_triage 2010-09-08 21:11:12 UTC
State Changed
From-To: open->patched

Fix for beastie.4th committed to HEAD. 


Comment 4 John Baldwin freebsd_committer freebsd_triage 2010-09-08 21:11:12 UTC
Responsible Changed
From-To: freebsd-doc->jhb

Fix for beastie.4th committed to HEAD.
Comment 5 John Baldwin freebsd_committer freebsd_triage 2010-10-11 20:01:51 UTC
State Changed
From-To: patched->closed

Fixed in 7.x and later.