Bug 1368 - rc.sysinit changes console font
rc.sysinit changes console font
Status: CLOSED WORKSFORME
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-02-27 23:52 EST by sds
Modified: 2014-03-16 22:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-19 17:06:57 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description sds 1999-02-27 23:52:46 EST
I set vga= in lilo.conf and /sbin/setsysfont called
from /etc/rc.d/rc.sysinit screws it up.
Comment 1 Bill Nottingham 1999-03-08 13:55:59 EST
what version of initscripts are you running?
Comment 2 sds 1999-03-09 09:13:59 EST
$ rpm -q initscripts
initscripts-3.91-1
Comment 3 Bill Nottingham 1999-03-09 10:53:59 EST
what does your /etc/sysconfig/i18n say?
Comment 4 sds 1999-03-09 11:09:59 EST
the file is empty:

$ ls -l /etc/sysconfig/i18n
   0 -rw-rw-r--   1 root     root            0 Dec  2 20:05
/etc/sysconfig/i18n

while I'd appreciate being able to display cyrillic-koi8 in the
console, I find preserving the size (60x80) more important.
Comment 5 Bill Nottingham 1999-03-10 11:46:59 EST
Grumble. It shouldn't be doing that anymore.
Does /sbin/setsysfont look like the following?

#!/bin/sh

if [ -f /etc/sysconfig/i18n ]; then
  . /etc/sysconfig/i18n
fi

if [ -x /usr/bin/setfont ]; then

  if [ -n "$SYSFONT" -a -n "$UNIMAP" ]; then
    /usr/bin/setfont $SYSFONT -u $UNIMAP
  elif [ -n "$SYSFONT" ]; then
    /usr/bin/setfont $SYSFONT
#  else
#    /usr/bin/setfont
  fi

else
  echo "can't set font"
  exit 1
fi
Comment 6 sds 1999-03-10 18:28:59 EST
yep, that's exactly what I have.
Comment 7 Bill Nottingham 1999-03-11 11:37:59 EST
Check through your initscripts to see if $SYSFONT is assigned
somewhere else; if it isn't, it obviously shouldn't be
calling setfont.
Comment 8 Bill Nottingham 1999-03-19 17:06:59 EST
at this point, I can't reproduce this here.
Using recent initscripts, the console stays the
same when booting with vga=ext, vga=132x43 (or whatever.)

Note You need to log in before you can comment on or make changes to this bug.