Bug 24960

Summary: ibcs2_enable="YES" in rc.conf does not enable COFF loader.
Product: Base System Reporter: carl <carl>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description carl 2001-02-09 00:20:01 UTC
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".

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



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.--5YvHkXY2oSBPvX4jYnhLLgzp2PQFvS8YfPB2q9XMxV2jwwVt
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /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])
                ;;
How-To-Repeat: look in rc.networks.
Comment 1 jkh freebsd_committer freebsd_triage 2001-02-28 22:26:14 UTC
State Changed
From-To: open->closed

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.