From nobody@FreeBSD.org  Thu Feb  8 16:16:12 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0A04F37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Feb 2001 16:16:07 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f190G6F44508;
	Thu, 8 Feb 2001 16:16:06 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102090016.f190G6F44508@freefall.freebsd.org>
Date: Thu, 8 Feb 2001 16:16:06 -0800 (PST)
From: carl@xena.ipaustralia.gov.au
To: freebsd-gnats-submit@FreeBSD.org
Subject: ibcs2_enable="YES" in rc.conf does not enable COFF loader.
X-Send-Pr-Version: www-1.0

>Number:         24960
>Category:       kern
>Synopsis:       ibcs2_enable="YES" in rc.conf does not enable COFF loader.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 08 16:20:01 PST 2001
>Closed-Date:    Wed Feb 28 14:26:14 PST 2001
>Last-Modified:  Wed Feb 28 14:28:45 PST 2001
>Originator:     Carl Makin
>Release:        4.2-20010207-STABLE
>Organization:
IP Australia
>Environment:
FreeBSD newton.aipo.gov.au 4.2-STABLE FreeBSD 4.2-STABLE #1: Wed Feb  7 10:07:20 EST 2001     carl@newton.aipo.gov.au:/usr/src/sys/compile/NEWTON  i386

>Description:
If you type in "ibcs2" at the shell prompt it loads up both

ibcs2.ko and
ibcs2_coff.ko

however if you specify "ibcs2_enable="YES" then it only loads
ibcs2.ko.  To get the coff module loaded you have to specify
"ibcs2_loaders="coff".

>How-To-Repeat:
look in rc.networks.


>Fix:
Roman Shterenzon <roman@harmonic.co.il> came up with the following patch;

--- /etc/rc.i386        Mon Jan 22 18:50:33 2001
+++ rc.i386     Mon Feb  5 17:58:02 2001
@@ -33,6 +33,7 @@
 [Yy][Ee][Ss])
        echo -n ' ibcs2'
        kldload ibcs2 > /dev/null 2>&1
+       kldload ibcs2_coff > /dev/null 2>&1
        case ${ibcs2_loaders} in
        [Nn][Oo])
                ;;

which is *very* simple and does the job fine.  I can't think of any
cases where you would want ibcs2 and NOT have the coff loader.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Wed Feb 28 14:26:14 PST 2001 
State-Changed-Why:  
The supplied fix is not actually correct, but a simple 3 character 
change to defaults/rc.conf gives the same result and is more elegant. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=24960 
>Unformatted:
