Problem
I would like to have the kernel debugger enabled during the boot process for the emergency media I created using emergency_disk or emergency_rec.
Solution
Prior to creating the emergency media first edit the file, /usr/lib/drf/drf_inst.gen:
# cp /usr/lib/drf/drf_inst.gen /usr/lib/drf/drf_inst.gen.orig# vi /usr/lib/drf/drf_inst.genAt approximately line # 1071, find the line reading:
while read modulejust above it, insert these two lines:
/sbin/modadmin -l kdb >/dev/null
/sbin/modadmin -l kdb_util >/dev/nullSo that the file now reads:1069 done )
1070
1071 /sbin/modadmin -l kdb >/dev/null
1072 /sbin/modadmin -l kdb_util >/dev/null
1073
1074 while read module
1075 doSave the file.Also, export the variable DRF_KDB just prior to creating the emergency media with emergency_rec or emergency_disk:
DRF_KDB=kdb
export DRF_KDB
/sbin/emergency_rec ...This media should be able to invoke the kdb kernel debugger prior to the loading of other drivers and may help debug problems with other loadable modules.
See also
TA109259 - "What crash recovery features are provided with SCO Unix?" TA126294 - "How do I enable the kernel debugger in OpenServer6?"
http://osr600doc.xinuos.com/en/man/html.ADM/kdb.ADM.html
http://osr600doc.xinuos.com/en/man/html.ADM/emergency_rec.ADM.html
http://osr600doc.xinuos.com/en/man/html.ADM/emergency_disk.ADM.html