Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299494 Details for
Bug 439334
TCG: /etc/init.d/tcsd start fails to load TPM modules
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
tcsd start patch for successful load of TPM modules
initrd.tcsd.patch (text/plain), 1.77 KB, created by
IBM Bug Proxy
on 2008-03-28 17:00:30 UTC
(
hide
)
Description:
tcsd start patch for successful load of TPM modules
Filename:
MIME Type:
Creator:
IBM Bug Proxy
Created:
2008-03-28 17:00:30 UTC
Size:
1.77 KB
patch
obsolete
>--- /etc/init.d/tcsd.orig 2008-03-24 23:30:06.000000000 -0700 >+++ /etc/init.d/tcsd 2008-03-27 19:49:52.000000000 -0700 >@@ -21,33 +21,79 @@ prog="tcsd" > # Some variables to make the below more readable > TCSD=/usr/sbin/tcsd > PID_FILE=/var/run/tcsd.pid >-INSMOD=/sbin/insmod >+MODPROBE=/sbin/modprobe > LSMOD=/sbin/lsmod > GREP=/bin/grep >+PWD=/bin/pwd >+MOD_DIR=/lib/modules/$(uname -r)/kernel/drivers/char/tpm >+START_OPT=" start" > > load_drivers() > { >- for d in `echo /lib/modules/$(uname -r)/kernel/drivers/char/tpm/tpm_*`; do >- $INSMOD $d >- if test $? -eq 0; then >- break; >+ CUR_DIR=`$PWD` >+ cd $MOD_DIR >+ >+ # Must load tpm_bios.ko first >+ $MODPROBE tpm_bios >/dev/null 2>&1 >+ RETVAL=$? >+ if [ $RETVAL -eq 1 ]; then >+ failure "Load tpm_bios" >+ echo >+ cd $CUR_DIR >+ return $RETVAL >+ fi >+ >+ # Must load tpm.ko second >+ $MODPROBE tpm >/dev/null 2>&1 >+ RETVAL=$? >+ if [ $RETVAL -eq 1 ]; then >+ failure "Load tpm" >+ echo >+ cd $CUR_DIR >+ return $RETVAL >+ fi >+ >+ # Attempt to load remaining tpm_*.ko >+ # But do NOT return error if they fail >+ for d in `echo tpm_*`; do >+ if [ "$d" != "tpm_bios.ko" ] >+ then >+ m=${d%".ko"} >+ $MODPROBE $m >/dev/null 2>&1 > fi > done >+ >+ cd $CUR_DIR >+ success "Load tpm" >+ echo >+ return $RETVAL > } > > check_drivers() > { >- $LSMOD | $GREP tpm_ >+ $LSMOD | $GREP tpm_ >/dev/null 2>&1 >+ RETVAL=$? >+ return $RETVAL > } > > start() > { >- check_drivers || load_drivers || failure >+ check_drivers >+ RETVAL=$? >+ if [ $RETVAL -ne 0 ]; then >+ load_drivers >+ RETVAL=$? >+ fi >+ if [ $RETVAL -ne 0 ]; then >+ failure $"Loading drivers" >+ fi > echo -n $"Starting $prog: " >- $TCSD $OPTIONS && success || failure >+ $TCSD $START_OPT && success >+ echo >+ touch /var/lock/subsys/tcsd && success > RETVAL=$? >- [ "$RETVAL" = 0 ] && touch /var/lock/subsys/tcsd > echo >+ return $RETVAL > } > > stop()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 439334
: 299494 |
299530