[Bug 398388] Re: rc-scripts termput handling broken when on serial console

Elan Ruusamäe glen at delfi.ee
Thu Jul 16 14:52:38 CEST 2009


you need to debug it yourself, only thing i guess is that INIT_COL gets
somehow negative value from this code block of
/etc/rc.d/init.d/functions. so add "set -x" into the file to debug ("set
+x" to disable noise afterwards):

# Set defaults
if [ -z "$COLUMNS" -o -z "$LINES" ]; then
    _setterm() {
        set -- $(stty size 2>/dev/null)
        LINES=${LINES:-$1}
        COLUMNS=${COLUMNS:-$2}
    }
    _setterm
    unset _setterm
fi
[ -z "$COLUMNS" ] && COLUMNS=80
export LINES COLUMNS
INIT_COL=$((COLUMNS - 13))

-- 
rc-scripts termput handling broken when on serial console
https://bugs.launchpad.net/bugs/398388
You received this bug notification because you are subscribed to PLD
Linux.

Status in PLD Linux Distribution: New

Bug description:

When using rc-scripts over a serial console (additionally this is via ipmi)
I get errors on console. It was introduced after some changes by glen in that area
few months ago I think. Unfortunately I don't know which change exactly.

[   10.790565] Trying to move old root to /initrd ... okay                                                                                         
INIT: version 2.86 booting
tput: invalid option -- '1'
usage: tput [-V] [-S] [-T term] capname
tput: invalid option -- '1'
usage: tput [-V] [-S] [-T term] capname
tput: invalid option -- '1'
usage: tput [-V] [-S] [-T term] capname
tput: invalid option -- '1'
usage: tput [-V] [-S] [-T term] capname
tput: invalid option -- '1'
usage: tput [-V] [-S] [-T term] capname
                        Napędzane przez PLD Linux Distribution
              Proszę wcisnąć I żeby wejść w tryb interaktywny
Host: xyz[  ZAJĘTY  ][ ZROBIONE]


More information about the pld-bugs mailing list