conf/65489: [patch] no random entrophy breaks diskless boot

Pawel Worach sajd at telia.com
Tue Apr 13 08:00:40 PDT 2004


>Number:         65489
>Category:       conf
>Synopsis:       [patch] no random entrophy breaks diskless boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 08:00:38 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Worach
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Fri Apr 9 05:08:50 MEST 2004


>Description:
	newfs of the MFS /etc hangs in "block" state because /dev/random
        entrophy harvesting in not enabled. running initrandom before
        initdiskless fixes the problem. tested on i386.
>How-To-Repeat:
	boot a diskless client
>Fix:

	change rc order from:
initdiskless
rcconf.sh
initrandom
dumpon
...

        to:
initrandom
initdiskless
rcconf.sh
dumpon
...

--- patch begins here ---
Index: etc/rc.d/dumpon
===================================================================
RCS file: /export/ctm/cvs/src/etc/rc.d/dumpon,v
retrieving revision 1.3
diff -u -r1.3 dumpon
--- etc/rc.d/dumpon	8 Mar 2004 12:25:05 -0000	1.3
+++ etc/rc.d/dumpon	13 Apr 2004 14:43:42 -0000
@@ -4,7 +4,7 @@
 #
 
 # PROVIDE: dumpon
-# REQUIRE: initrandom
+# REQUIRE: rcconf
 # BEFORE: disks savecore
 # KEYWORD: FreeBSD nojail
 
Index: etc/rc.d/initdiskless
===================================================================
RCS file: /export/ctm/cvs/src/etc/rc.d/initdiskless,v
retrieving revision 1.33
diff -u -r1.33 initdiskless
--- etc/rc.d/initdiskless	31 Mar 2004 08:43:20 -0000	1.33
+++ etc/rc.d/initdiskless	13 Apr 2004 14:43:42 -0000
@@ -27,6 +27,7 @@
 # $FreeBSD: src/etc/rc.d/initdiskless,v 1.33 2004/03/31 08:43:20 luigi Exp $
 #
 # PROVIDE: initdiskless
+# REQUIRE: initrandom
 # KEYWORD: FreeBSD nojail
 
 
Index: etc/rc.d/initrandom
===================================================================
RCS file: /export/ctm/cvs/src/etc/rc.d/initrandom,v
retrieving revision 1.3
diff -u -r1.3 initrandom
--- etc/rc.d/initrandom	9 Apr 2004 15:56:16 -0000	1.3
+++ etc/rc.d/initrandom	13 Apr 2004 14:43:42 -0000
@@ -4,7 +4,6 @@
 #
 
 # PROVIDE: initrandom
-# REQUIRE: initdiskless
 # BEFORE: disks
 # KEYWORD: FreeBSD nojail
 
Index: etc/rc.d/rcconf.sh
===================================================================
RCS file: /export/ctm/cvs/src/etc/rc.d/rcconf.sh,v
retrieving revision 1.2
diff -u -r1.2 rcconf.sh
--- etc/rc.d/rcconf.sh	25 Jan 2003 20:02:35 -0000	1.2
+++ etc/rc.d/rcconf.sh	13 Apr 2004 14:43:42 -0000
@@ -5,7 +5,7 @@
 
 # PROVIDE: rcconf
 # REQUIRE: initdiskless
-# BEFORE:  disks initrandom
+# BEFORE:  disks
 # KEYWORD: FreeBSD
 
 . /etc/rc.subr
--- patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list