Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400549 - sys-apps/openrc-0.9.4 screws up terminal characters when booting under Xen if consolefont present in boot runlevel
Summary: sys-apps/openrc-0.9.4 screws up terminal characters when booting under Xen if...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-01-24 06:31 UTC by awk
Modified: 2012-02-09 09:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch that checks for -$RC_SYS in the keywords (openrc-init-early.diff,1.65 KB, patch)
2012-01-24 09:16 UTC, awk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description awk 2012-01-24 06:31:57 UTC
When booting a DomU and watching the console from, e.g., mac Terminal, OpenRC prints an escape sequence to the console that turns all "[", "]", "~" and other characters to random accented characters, requiring a hard terminal reset to fix.

Reproducible: Always

Steps to Reproduce:
boot with console output going to a terminal program, such as when booting under Xen "xm create -c"
Actual Results:  
terminal gets into an unwanted state

Expected Results:  
terminal should not be affected

The problem is that init-early.sh will look for the existence of keymaps and consolefont in the default/boot runlevels but doesn't check if they would actually run. When it finds consolefont it prints out the offending escape sequence.

Removing those from the boot runlevel was an obvious fix (once I figured out what was going on of course), but seems like a more elegant solution would be to check the keywords for "-xenu" (or whatever else).
Comment 1 awk 2012-01-24 09:16:09 UTC
Created attachment 299711 [details, diff]
patch that checks for -$RC_SYS in the keywords

Here is a patch that checks if -$RC_SYS is present in the keywords (using grep because I'm not sure how else to do it).

Not perfect.. it needs $RC_SYS to be explicitly set.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-01-24 09:56:49 UTC
Please retest against 0.9.8.1 first.
Comment 3 awk 2012-01-24 10:09:49 UTC
Same behavior under 0.9.8.1 (the init-early script is unchanged from 0.9.4).
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-02-09 09:56:28 UTC
Thanks, InCVS now.