Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-27 Thread Anton Zinoviev
On Sun, Dec 27, 2009 at 01:58:00PM +0100, Eric Valette wrote:
> 
> Will try to remember it when I receive the notification for the bug
> being closed. Now, I that I cured the side effect, I have to cure
> the real problem, that is, why checkfs script always returns an
> error even if the FS are good and I have to press  to finish
> booting. But I guess its because I use the experimental RC for
> dosfsck and it fails over a FS flagged purposely flagged with noauto
> as its for USB stick.

The last two numbers for such filesystems in /etc/fstab have to be 0 0.

> But that's another story. Thanks for your support and happy
> holidays/new year.

It is always nice to have bug reportes who are helping to fix the problem.

Anton Zinoviev




-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-27 Thread Eric Valette

On 27/12/2009 13:20, Anton Zinoviev wrote:


Indeed copying ckbcomp  to /bin instead of /usr/bin fixes the problem.


Yes, I can confirm this.  Setupcon tests the existence of ckbcomp even
when it doesn't require ckbcomp.  Thanks for the debugging.

When this bug is fixed (maybe in the next upload) don't forget to remove
/bin/ckbcomp.



Will try to remember it when I receive the notification for the bug 
being closed. Now, I that I cured the side effect, I have to cure the 
real problem, that is, why checkfs script always returns an error even 
if the FS are good and I have to press  to finish booting. But I 
guess its because I use the experimental RC for dosfsck and it fails 
over a FS flagged purposely flagged with noauto as its for USB stick.


But that's another story. Thanks for your support and happy holidays/new 
year.


-- eric





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-27 Thread Anton Zinoviev
On Sun, Dec 27, 2009 at 10:01:00AM +0100, Eric Valette wrote:
> On 26/12/2009 22:47, Eric Valette wrote:
> >
> >I finally found the bug: I traced setupcons -k in error mode and it
> >expects to find ckbcomp but unfortunately /usr is not mounted and
> >ckbcomp is /usr/bin/ckbcomp
> >
> >I traced the setupcons -k with set -x and it exist with doing anyting
> >because it does not find ckbcomp in the path.
>
> Indeed copying ckbcomp  to /bin instead of /usr/bin fixes the problem.

Yes, I can confirm this.  Setupcon tests the existence of ckbcomp even 
when it doesn't require ckbcomp.  Thanks for the debugging.

When this bug is fixed (maybe in the next upload) don't forget to remove 
/bin/ckbcomp.

Anton Zinoviev



-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-27 Thread Eric Valette

On 26/12/2009 22:47, Eric Valette wrote:


I finally found the bug: I traced setupcons -k in error mode and it
expects to find ckbcomp but unfortunately /usr is not mounted and
ckbcomp is /usr/bin/ckbcomp

I traced the setupcons -k with set -x and it exist with doing anyting
because it does not find ckbcomp in the path.


Indeed copying ckbcomp  to /bin instead of /usr/bin fixes the problem.

--eric





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette


I finally found the bug: I traced setupcons -k in error mode and it 
expects to find ckbcomp but unfortunately /usr is not mounted and 
ckbcomp is /usr/bin/ckbcomp


I traced the setupcons -k with set -x and it exist with doing anyting 
because it does not find ckbcomp in the path.


-- eric






--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Anton Zinoviev
On Sat, Dec 26, 2009 at 08:30:56PM +0100, Eric Valette wrote:
> 
> >What happens if you execute
> >
> >loadkeys /etc/console-setup/cached.kmap.gz
> 
> Well I just removed it just in case. I will have to wait until
> reboot but I cannot now...

In order to make the test more useful try to recreate this file before 
the reboot by using the command

setupcon --save-only

> XKBMODEL="pc105"
> XKBLAYOUT="fr"
> XKBVARIANT=""
> XKBOPTIONS="lv3:ralt_switch"

This seems OK.

> >and there is nothing there to depend on /usr being mounted.  Can you
> >edit /etc/default/console-setup and put there the line
> >
> >VERBOSE_OUTPUT="yes"
> >
> >and see if there are some error messages?
> 
> Yes I get a syntax error! for Lat15-Fixed16.psf.gz. You got it
> because it. I attach it

Lat15-Fixed16.psf.gz is simply a console font.  What exactly was the 
error message?  Can you send the contents of /etc/default/console-setup 
to see of there are some errors in it (maybe a missing quotation mark).

Anton Zinoviev




-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette

On 26/12/2009 20:16, Anton Zinoviev wrote:

On Sat, Dec 26, 2009 at 06:39:13PM +0100, Eric Valette wrote:


I tested manually after entering the maintenance mode S06keyboard-setup
and yes it does print something and does a "setupcon -k" but the
keyboard is still wrong after the script has executed.


By wrong do you mean it is a QWERTY keyboard?  Or it is a French one but
wrong in some other way?


Its a qwerty keyboard.



What happens if you execute

loadkeys /etc/console-setup/cached.kmap.gz


Well I just removed it just in case. I will have to wait until reboot 
but I cannot now...



Is the contents of /etc/default/keyboard correct?  It has to contain
lines like the following:

XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT=""


XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT=""
XKBOPTIONS="lv3:ralt_switch"



What happens with the keyboard if you use the command 'setupcon' when
the machine is in regular mode (not in maintenance mode)?


Well I have tried t log on a console and this does no more work either.


I am puzzled by the fact you say the keyboard doesn't work in
maintenance mode but it works in normal mode.  This is because in both
cases the keyboard is configured by the command

loadkeys /etc/console-setup/cached.kmap.gz


I was simply wrong: I discovered it when entering in maintenance mode 
and last time I used the console to kill xbmc or kdm it worked. 
Something did chnage in the mean time.




and there is nothing there to depend on /usr being mounted.  Can you
edit /etc/default/console-setup and put there the line

VERBOSE_OUTPUT="yes"

and see if there are some error messages?


Yes I get a syntax error! for Lat15-Fixed16.psf.gz. You got it because 
it. I attach it




--
   __
  /  `  Eric Valette
 /--   __  o _. 6 rue Paul Le Flem
(___, / (_(_(__ 35740 Pace

Tel: +33 (0)2 99 85 26 76   Fax: +33 (0)2 99 85 26 76
E-mail: eric.vale...@free.fr





Lat15-Fixed16.psf.gz
Description: application/gzip


Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Anton Zinoviev
On Sat, Dec 26, 2009 at 06:39:13PM +0100, Eric Valette wrote:
> 
> I tested manually after entering the maintenance mode S06keyboard-setup
> and yes it does print something and does a "setupcon -k" but the
> keyboard is still wrong after the script has executed.

By wrong do you mean it is a QWERTY keyboard?  Or it is a French one but 
wrong in some other way?

What happens if you execute

loadkeys /etc/console-setup/cached.kmap.gz

(it doesn't matter whether you do this in maintenance mode or after 
regular start of the machine)

Is the contents of /etc/default/keyboard correct?  It has to contain 
lines like the following:

XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT=""

What happens with the keyboard if you use the command 'setupcon' when 
the machine is in regular mode (not in maintenance mode)?

I am puzzled by the fact you say the keyboard doesn't work in 
maintenance mode but it works in normal mode.  This is because in both 
cases the keyboard is configured by the command

loadkeys /etc/console-setup/cached.kmap.gz

and there is nothing there to depend on /usr being mounted.  Can you 
edit /etc/default/console-setup and put there the line

VERBOSE_OUTPUT="yes"

and see if there are some error messages?

Anton Zinoviev




-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette

On 26/12/2009 18:11, Eric Valette wrote:

On 26/12/2009 17:39, Eric Valette wrote:
Here are the buggy lines in keymap.sh

# If setupcon is present, then we've been superseded by console-setup.
if type setupcon >/dev/null 2>&1; then
exit 0
fi

because console-setup is run tto late in case of voluntary single mode
or failure during file system checks.


I should have read the next script!

I tested manually after entering the maintenance mode S06keyboard-setup
and yes it does print something and does a "setupcon -k" but the 
keyboard is still wrong after the script has executed.


-- eric





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette

On 26/12/2009 17:39, Eric Valette wrote:
Here are the buggy lines in keymap.sh

# If setupcon is present, then we've been superseded by console-setup.
if type setupcon >/dev/null 2>&1; then
exit 0
fi

because console-setup is run tto late in case of voluntary single mode 
or failure during file system checks.



--eric





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette



BTW readding the scripts, it look like the bug is more in console-common
and that for some reason, the /etc/console/boottime.kmap.gz does not get
loaded.


I entered rescue mode again and did the loadkeys 
/etc/console/boottime.kmap.gz and got my french keyboard back. 
Unfortunately I had still to enter the passwd using the wrong keyboard 
layout!


-- eric





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette

On 26/12/2009 17:04, Eric Valette wrote:

On 26/12/2009 14:52, Anton Zinoviev wrote:

On Fri, Dec 25, 2009 at 09:35:42PM +0100, Eric Valette wrote:


I had a file system witha date set in the future, and thus entered
single mode. I had then a wrong keyboard


This shouldn't be happening so I need you to make few tests in order to
see what went wrong.


OK.


First, to make it clear - I suppose you you entered single user mode
from the corresponding menu item of grup? If you used 'emergency' mode
(option -b at grub menu) then it would be normal for the keyboard to be
leaven unconfigured.


No I entered this mode because the check of the filesystem failed
(S30checkfs in rcS.d that is after S06keyboard-setup)


Second, while you machine is entering single user mode do you see the
text 'Setting preliminary keymap'?


I do not see it but my screen is full of message because of the various
drivers and file system so I may have missed it.

If you don't, do you have a file

/etc/rcS.d/S06keyboard-setup?


ls -l /etc/rcS.d/S06keyboard-setup
lrwxrwxrwx 1 root root 24 avril 11 2009 /etc/rcS.d/S06keyboard-setup ->
../init.d/keyboard-setup



Third, if you see the text 'Setting preliminary keymap', can you test
that the keyboard is still unconfigured? What is the output of the
command

ls -l /etc/default/keyboard /etc/console-setup/cached.kmap.gz


ls -l /etc/default/keyboard /etc/console-setup/cached.kmap.gz
-rw-r--r-- 1 root root 4776 déc. 26 09:55 /etc/console-setup/cached.kmap.gz
-rw-r--r-- 1 root root 668 déc. 25 21:23 /etc/default/keyboard



Console-setup uses time-stamps in order to determine whether the
keyboard map needs recompiling. If your date/time was incorrect and
cached.kmap.gz seems newer than /etc/default/keyboard then console-setup
will never recompile the keymap. If this is the case, then you need to
remove /etc/console-setup/cached.kmap.gz.


BTW if I hit ctlr D, and let the boot finish the kerboard on the console
are OK. And I alraedy done dpkg-reconfigure console-setup several times
(2X)



BTW readding the scripts, it look like the bug is more in console-common 
and that for some reason, the /etc/console/boottime.kmap.gz does not get 
loaded.


--
   __
  /  `  Eric Valette
 /--   __  o _. 6 rue Paul Le Flem
(___, / (_(_(__ 35740 Pace

Tel: +33 (0)2 99 85 26 76   Fax: +33 (0)2 99 85 26 76
E-mail: eric.vale...@free.fr









--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Eric Valette

On 26/12/2009 14:52, Anton Zinoviev wrote:

On Fri, Dec 25, 2009 at 09:35:42PM +0100, Eric Valette wrote:


I had a file system witha date set in the future, and thus entered
single mode. I had then a wrong keyboard


This shouldn't be happening so I need you to make few tests in order to
see what went wrong.


OK.


First, to make it clear - I suppose you you entered single user mode
from the corresponding menu item of grup?  If you used 'emergency' mode
(option -b at grub menu) then it would be normal for the keyboard to be
leaven unconfigured.


No I entered this mode because the check of the filesystem failed 
(S30checkfs in rcS.d that is after S06keyboard-setup)



Second, while you machine is entering single user mode do you see the
text 'Setting preliminary keymap'?


I do not see it but my screen is full of message because of the various 
drivers and file system so I may have missed it.


 If you don't, do you have a file

/etc/rcS.d/S06keyboard-setup?


ls -l /etc/rcS.d/S06keyboard-setup
lrwxrwxrwx 1 root root 24 avril 11  2009 /etc/rcS.d/S06keyboard-setup -> 
../init.d/keyboard-setup




Third, if you see the text 'Setting preliminary keymap', can you test
that the keyboard is still unconfigured? What is the output of the
command

ls -l /etc/default/keyboard /etc/console-setup/cached.kmap.gz


ls -l /etc/default/keyboard /etc/console-setup/cached.kmap.gz
-rw-r--r-- 1 root root 4776 déc.  26 09:55 /etc/console-setup/cached.kmap.gz
-rw-r--r-- 1 root root  668 déc.  25 21:23 /etc/default/keyboard



Console-setup uses time-stamps in order to determine whether the
keyboard map needs recompiling.  If your date/time was incorrect and
cached.kmap.gz seems newer than /etc/default/keyboard then console-setup
will never recompile the keymap.  If this is the case, then you need to
remove /etc/console-setup/cached.kmap.gz.


BTW if I hit ctlr D, and let the boot finish the kerboard on the console 
are OK. And I alraedy done dpkg-reconfigure console-setup several times (2X)


-- eric






--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-26 Thread Anton Zinoviev
On Fri, Dec 25, 2009 at 09:35:42PM +0100, Eric Valette wrote:
> 
> I had a file system witha date set in the future, and thus entered 
> single mode. I had then a wrong keyboard

This shouldn't be happening so I need you to make few tests in order to 
see what went wrong.

First, to make it clear - I suppose you you entered single user mode 
from the corresponding menu item of grup?  If you used 'emergency' mode 
(option -b at grub menu) then it would be normal for the keyboard to be 
leaven unconfigured.

Second, while you machine is entering single user mode do you see the 
text 'Setting preliminary keymap'?  If you don't, do you have a file 
/etc/rcS.d/S06keyboard-setup?

Third, if you see the text 'Setting preliminary keymap', can you test 
that the keyboard is still unconfigured? What is the output of the 
command

ls -l /etc/default/keyboard /etc/console-setup/cached.kmap.gz

Console-setup uses time-stamps in order to determine whether the 
keyboard map needs recompiling.  If your date/time was incorrect and 
cached.kmap.gz seems newer than /etc/default/keyboard then console-setup 
will never recompile the keymap.  If this is the case, then you need to 
remove /etc/console-setup/cached.kmap.gz.

Anton Zinoviev




-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#562557: console-setup: Wrong keyboard in single mode/normal boot failure

2009-12-25 Thread Eric Valette
Package: console-setup
Version: 1.50
Severity: normal

I had a file system witha date set in the future, and thus entered single mode. 
I had
then a wrong keyboard which is annoying because when you are in this mode you
are likely to kill your machine if using the wrong key (even enetring the 
passwd may 
be challenging).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF8, LC_CTYPE=fr_FR.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages console-setup depends on:
ii  console-terminus  4.30-2 Fixed-width fonts for fast reading
ii  debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii  keyboard-configuration1.50   system-wide keyboard preferences
ii  xkb-data  1.7-1  X Keyboard Extension (XKB) configu

Versions of packages console-setup recommends:
ii  console-tools  1:0.2.3dbs-66 Linux console and font utilities
ii  kbd-compat [kbd]   1:0.2.3dbs-66 Wrappers around console-tools for 

Versions of packages console-setup suggests:
ii  locales   2.10.2-2   GNU C Library: National Language (
pi  lsb-base  3.2-23 Linux Standard Base 3.2 init scrip

-- debconf information:
* console-setup/variant: France
* console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic 
languages
  console-setup/unsupported_options: true
  console-setup/ctrl_alt_bksp: false
  console-setup/modelcode: pc105
  console-setup/use_system_font:
  console-setup/fontsize: 16
  console-setup/unsupported_layout: true
  console-setup/layoutcode: fr
  debian-installer/console-setup/title:
  console-setup/codesetcode: Lat15
  console-setup/altgr: Right Alt
  console-setup/ttys: /dev/tty[1-6]
  console-setup/codeset: # Latin1 and Latin5 - western Europe and Turkic 
languages
  console-setup/toggle: No toggling
  console-setup/fontface: Fixed
  console-setup/fontsize-text: 16
  console-setup/compose: No compose key
  debian-installer/console-setup-udeb/title:
  console-setup/other:
  console-setup/switch: No temporary switch
  console-setup/unsupported_config_layout: true
  console-setup/charmap: UTF-8
* console-setup/fontface47: Fixed
* console-setup/fontsize-text47: 16
  console-setup/optionscode: lv3:ralt_switch
  console-setup/unsupported_config_options: true
* console-setup/charmap47: ISO-8859-15
* console-setup/layout: France
  console-setup/variantcode:
  console-setup/model: PC générique 105 touches (intl)
  console-setup/fontsize-fb: 16
  console-setup/fontsize-fb47: 16





--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org