Package: console-common
Version: 0.7.86
Followup-For: Bug #651036
I think this bug is a false alarm. There should be no dependency for
console-common
on $remote_fs these days.
Originally console-tools and kbd had important commands (unicode_start/
unicode_stop)
and loadkeys / dumpkeys in /usr/bin. Now however the commands are symlinks
to the real versions in /bin and $remote_fs should not be needed.
Secondly console-common should be simplified in the near future as
console-tools is being
removed.
regards
Alastair
On 2011-12-05 13:14, Alban Browaeys wrote:
> Package: console-common
> Version: 0.7.86
> Followup-For: Bug #651036
>
> Dear Maintainer,
> This issue comes from adding $remote_fs to the required start in the lsb
> header.
> Indeed checkroot init script has keymap in its should start. This means
> adding $remote_fs makes a loop if anything provides a remote fs, here
> nfs .
> Thus local_fs use keymap but keymap uses remote_fs which itself start
> after local_fs.
>
>
> A local workaround is to edit /etc/init.d/keymap.sh and remove
> $remote_fs from Required-Start and Required-Stop.
>
> I guess there was a rationale for adding those $remote_fs but the way
> the relationship are laid out this cannot be achieved by simply adding
> $remote_fs to the required start and stop.
> Though I am not confident it is not a simple mistake as there is nothing
> in the debian changelog about this.
>
> BR,
> Alban
>
>
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.1.0test0 (SMP w/2 CPU cores)
> Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages console-common depends on:
> ii console-data 2:1.12-1
> ii console-tools 1:0.2.3dbs-70
> ii debconf [debconf-2.0] 1.5.41
> ii debianutils 4.1
> ii lsb-base 3.2-28
>
> console-common recommends no packages.
>
> console-common suggests no packages.
>
> -- Configuration Files:
> /etc/init.d/keymap.sh changed:
> if type setupcon >/dev/null 2>&1; then
> exit 0
> fi
> . /lib/lsb/init-functions
> CONSOLE_TYPE=`fgconsole 2>/dev/null` || CONSOLE_TYPE="unknown"
> QUIT=0
> command -v loadkeys >/dev/null 2>&1 || QUIT=1
> CONFDIR=/etc/console
> CONFFILEROOT=boottime
> EXT=kmap
> CONFFILE=${CONFDIR}/${CONFFILEROOT}.${EXT}.gz
> reset_kernel()
> {
> # On Mac PPC machines, we may need to set kernel vars first
> # We need to mount /proc to do that; not optimal, as its going to
> # be mounted in S10checkroot, but we need it set up before sulogin
> # may be run in checkroot, which will need the keyboard to log in...
> [ -x /sbin/sysctl ] || return
> [ -r /etc/sysctl.conf ] || return
> grep -v '^\#' /etc/sysctl.conf | grep -q keycodes
> if [ "$?" = "0" ] ; then
> grep keycodes /etc/sysctl.conf | grep -v "^#" | while read d ; do
> /sbin/sysctl -w $d 2> /dev/null || true
> done
> fi
> }
> unicode_start_stop()
> {
> # Switch unicode mode by checking the locale.
> # This will be needed before loading the keymap.
> [ -x /usr/bin/unicode_start ] || [ -x /bin/unicode_start ] || return
> [ -x /usr/bin/unicode_stop ] || [ -x /bin/unicode_stop ] || return
> ENV_FILE=""
> [ -r /etc/environment ] && ENV_FILE="/etc/environment"
> [ -r /etc/default/locale ] && ENV_FILE="/etc/default/locale"
> [ "$ENV_FILE" ] && CHARMAP=$(set -a && . "$ENV_FILE" && locale charmap)
> if [ "$CHARMAP" = "UTF-8" ]; then
> unicode_start 2> /dev/null || true
> else
> unicode_stop 2> /dev/null || true
> fi
> }
> if [ ! $QUIT = '1' ] ; then
> case "$1" in
> start | restart | force-reload | reload)
>
> # Set kernel variables if required
> reset_kernel
> # First mount /proc if necessary...and if it is there (#392798)
> unmount_proc="no"
> if [ -d /proc ]; then
> if [ ! -x /proc/$$ ]; then
> unmount_proc="yes"
> mount -n /proc
> fi
>
> if [ -f /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes ] ;
> then
> linux_keycodes=`cat
> /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes`
> else
> linux_keycodes=1;
> fi
> else
> linux_keycodes=1;
> fi
> # load new map
> if [ $linux_keycodes -gt 0 ] ; then
> if [ -r ${CONFFILE} ] ; then
> # Switch console mode to UTF-8 or ASCII as necessary
> unicode_start_stop
> if [ $CONSOLE_TYPE = "serial" ] ; then
> loadkeys -q ${CONFFILE} 2>&1 > /dev/null
> else
> loadkeys -q ${CONFFILE}
> fi
> if [ $? -gt 0 ]
> then
> # if we've a serial console, we may not have a keyboard, so
> don't
> # complain if we fail.
> if [ ! $CONSOLE_TYPE = "serial" ]; then
> log_warning_msg "Problem when loading
> ${CONFDIR}/${CONFFILEROOT}.${EXT}.gz, use install-keymap"
> sleep 10
> fi
> fi
> fi
> fi
> # unmount /proc if we mounted it
> [ "$unmount_proc" = "no" ] || umount -n /proc
> ;;
> stop)
> ;;
> status)
> exit 0
> ;;
> *)
> log_warning_msg "Usage: $0
> {start|stop|restart|reload|force-reload|status}"
> ;;
> esac
> fi
>
>
> -- debconf information:
> console-data/keymap/powerpcadb:
> console-data/keymap/ignored:
> * console-data/keymap/full: fr-latin9
> console-data/keymap/template/keymap:
> * console-data/keymap/policy: Select keymap from full list
> console-data/bootmap-md5sum: 9bf7007411ee9c240c894e3f5ee134e2
> console-data/keymap/template/layout:
> * console-data/keymap/family: azerty
> console-data/keymap/template/variant:
>
>
--
Alastair McKinstry , <[email protected]> , <[email protected]>
http://blog.sceal.ie
Anyone who believes exponential growth can go on forever in a finite world
is either a madman or an economist - Kenneth Boulter, Economist.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]