tput used in /lib/lsb/init-functions after /usr is unmounted

Bug #23388 reported by hunger
22
Affects Status Importance Assigned to Milestone
lsb (Ubuntu)
Fix Released
Low
Michael Vogt

Bug Description

/usr/bin/tput is used in function log_end_msg in /lib/lsb/init-functions. This function is called after local
filesystems are unmounted (so /usr and with it tput might be unavailable). All other functions in init-functions
handle this gracefully, log_end_msg is the only one that is calling tput without checking for it to be there.

Please change line 234 to read
  if [ "$COL" ] && [ -x "$TPUT" ]; then
instead of
  if [ "$COL" ]; then
to fix this tiny problem.

Revision history for this message
Matt Zimmerman (mdz) wrote :

(this whole mess also needs to be fixed not to hardcode paths)

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

*** Bug 24602 has been marked as a duplicate of this bug. ***

Revision history for this message
hunger (hunger) wrote :

Will this get fixed in time for dapper?

I am still seeing the issue.

Revision history for this message
Michael Vogt (mvo) wrote :

Hm, looking at the source it seems to check if tput is available etc. What is the exact message you get when umounting?

Thanks,
 Michael

Changed in lsb:
status: Unconfirmed → Needs Info
Revision history for this message
hunger (hunger) wrote :

Oh, right: The file I initially complained about seems fixed. The code has moved to another file now. Sorry, I had not noticed as the problem happens right in the same place of the shut down sequence.

The error message is caused by /etc/lsb-base-logging.sh line 105 now.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for the additonal info.
I uploaded a new version that fixes the issue.

Changed in lsb:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.