[Pkg-kbd-devel] Re: Ubuntu keyboard/installer plans
Tollef Fog Heen
tfheen at ubuntu.com
Tue Aug 22 17:13:35 UTC 2006
* Anton Zinoviev
| I've just uploaded a new version of console-setup that contains
| experimental udebs that demonstrate how console-setup can be used in
| the installer. The size of all precompiled keyboards was surprisingly
| small: only 64k (compressed) for all keyboard layouts, variants and
| supported options.
Yay, excellent. I've poked and worked a bit on this and it generally
seems to work quite well.
It requires a new console-tools-udeb, but that's not very hard (I have
one for Ubuntu already). Among the other problems I encountered is
that console-setup is never run when using d-i: setupcon tries to
readlink /proc/self/fd/2 to decide whether it's on the console or not.
To work around this, I made console-setup's postinst call setupcon <
/dev/tty > /dev/tty 2>/dev/tty and added /dev/tty to the «ok» list in
the readlink
A diff says more than a thousand words, so:
: tfheen at thosu /tmp/console-setup > svn diff
Index: setupcon
===================================================================
--- setupcon (revisjon 201)
+++ setupcon (arbeidskopi)
@@ -116,7 +116,7 @@
fi
case `readlink /proc/self/fd/2` in
- /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console)
+ /dev/tty[0-9]*|/dev/tty|/dev/vc/[0-9]*|/dev/console)
;;
*)
if [ "$VERBOSE_OUTPUT" = yes ]; then
Index: debian/console-setup.postinst
===================================================================
--- debian/console-setup.postinst (revisjon 201)
+++ debian/console-setup.postinst (arbeidskopi)
@@ -136,7 +136,7 @@
# In d-i debhelper doesn't use /etc/init.d scripts :-)
if [ -f /usr/share/console-setup-mini/console-setup.config ]; then
- setupcon
+ setupcon < /dev/tty > /dev/tty 2>/dev/tty
fi
#DEBHELPER#
: tfheen at thosu /tmp/console-setup >
--
Tollef Fog Heen ,''`.
UNIX is user friendly, it's just picky about who its friends are : :' :
`. `'
`-
More information about the Pkg-kbd-devel
mailing list