[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#822946: Don't set console setting over logout/login



On Tue, May 03, 2016 at 09:17:03AM +0100, Klaus Ethgen wrote:
> 
> > I suppose now
> > 
> > printf '\033%%G' 
> > 
> > is the default in the kernel, that is UTF-8,
> 
> Well, that is not true. I have that bug as well on systems that uses
> standard debian kernel as also on systems where I have a custom kernel
> with "CONFIG_NLS_DEFAULT="iso8859-1"".

This is because mingetty overrides the default of the kernel.

> > In order to test this try adding the option --noclear to all 
> > instances of mingetty.
> 
> Yes, that keeps the setting.

Good.  Now we know the culprit.
 
> > If the option --noclear fixes the problem, then there will be two things 
> > we can do.  First, maybe file a bug against mingetty (I don't know if 
> > this should be considered a bug or a feature of mingetty...).
> 
> Well, reallocating the tty is as it should be from my perspective. So I
> wouldn't see that a bug.

Reallocating the tty is not a bug, but leaving it unconfigured is.

> > ACTION=="add", SUBSYSTEM=="vc", KERNEL=="vcs[1-9]|vcs[1-9][0-9]", TEST=="/run/console-setup/font-loaded", RUN+="/etc/console-setup/cached_setup_terminal.sh %k"
> > 
> > In theory this should reconfigure a tty each time it is allocated.
> 
> I will give that a try. Will give you feedback.

At least with systemd this works.  I wonder what makes mingetty different.

Anton Zinoviev


Reply to: