Package: console-common
Version: 0.7.49
Severity: normal

- Add '-x' to the end of the first line in install-keymap
- Run, say, 'install-keymap us'
- The end of the output will show:

+ /bin/loadkeys /etc/console/boottime.kmap.gz
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
++ md5sum /etc/console/boottime.kmap.gz
++ cut -f1 '-d '
+ MD=7e1d5e02468a6d115be5323cf6c5be10
+ db_set console-data/bootmap-md5sum 7e1d5e02468a6d115be5323cf6c5be10
+ _db_cmd 'SET console-data/bootmap-md5sum' 7e1d5e02468a6d115be5323cf6c5be10
+ echo 'SET console-data/bootmap-md5sum' 7e1d5e02468a6d115be5323cf6c5be10
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=20 Unsupported command "loading" (full line was "Loading 
/etc/console/boottime.kmap.gz") received from confmodule.
+ return 20

(This non-zero exit is a problem for use of the script from within
a whiptail-based setup tool which interprets this as a failure.)

Apparently loadkeys is being chatty and debconf is consuming stdout as a
command channel. Other loadkey invocations in the script do use -q. Adding
-q to this last invocation yields:

+ /bin/loadkeys -q /etc/console/boottime.kmap.gz
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
++ md5sum /etc/console/boottime.kmap.gz
++ cut -f1 '-d '
+ MD=7e1d5e02468a6d115be5323cf6c5be10
+ db_set console-data/bootmap-md5sum 7e1d5e02468a6d115be5323cf6c5be10
+ _db_cmd 'SET console-data/bootmap-md5sum' 7e1d5e02468a6d115be5323cf6c5be10
+ echo 'SET console-data/bootmap-md5sum' 7e1d5e02468a6d115be5323cf6c5be10
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0

which is presumably what is actually intended (and which returns 0 on
success, as expected).

- Raz

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages console-common depends on:
ii  console-data            2002.12.04dbs-49 Keymaps, fonts, charset maps, fall
ii  console-tools           1:0.2.3dbs-56    Linux console and font utilities
ii  debconf                 1.4.30.13        Debian configuration management sy
ii  debianutils             2.8.4            Miscellaneous utilities specific t

-- debconf information:
  console-data/keymap/template/layout:
  console-data/keymap/family: qwerty
  console-data/keymap/powerpcadb:
  console-data/keymap/template/variant:
  console-data/keymap/ignored:
  console-data/keymap/full:
  console-data/keymap/template/keymap:
  console-data/keymap/policy: Don't touch keymap
  console-data/bootmap-md5sum: none


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to