Bug#820473: console-setup-linux: keyboard-setup.sh calls tools from /usr filesystem which isn't mounted yet

2016-04-08 Thread Steve McIntyre
On Fri, Apr 08, 2016 at 09:33:39PM +0300, Andriy Martynets wrote:
>Package: console-setup-linux
>Version: 1.141
>Severity: important
>
>Dear Maintainer,
>
>After latest system update (can't say for sure console-setup-linux or
>console-tools package was updated or both) keyboard-setup.sh started
>to fail at boot time. The point is that the script calls
>/etc/console-setup/cached_setup_keyboard.sh which in turn calls
>kbd_mode (utility from console-tools package) located in /usr/bin
>directory. The /usr filesystem isn't available at that stage as
>keyboard-setup.sh runs before mountall.sh.
>
>I believe that tools required at boot time must be within the rootfs
>(/bin or /sbin directories) or order of the init scripts must be
>changed.

This isn't a bug - if you have a separate /usr, it's expected that it
will be mounted by the initramfs before you get this far.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
< Aardvark> I dislike C++ to start with. C++11 just seems to be
handing rope-creating factories for users to hang multiple
instances of themselves.



Bug#820473: console-setup-linux: keyboard-setup.sh calls tools from /usr filesystem which isn't mounted yet

2016-04-08 Thread Andriy Martynets
Package: console-setup-linux
Version: 1.141
Severity: important

Dear Maintainer,
After latest system update (can't say for sure console-setup-linux or 
console-tools package was updated or both) keyboard-setup.sh started to fail at 
boot time.
The point is that the script calls /etc/console-setup/cached_setup_keyboard.sh 
which in turn calls kbd_mode (utility from console-tools package) located in 
/usr/bin directory.
The /usr filesystem isn't available at that stage as keyboard-setup.sh runs 
before mountall.sh.

I believe that tools required at boot time must be within the rootfs (/bin or 
/sbin directories) or order of the init scripts must be changed.

Thank you in advance,
Andriy Martynets


-- System Information:
Debian Release: stretch/sid
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'unstable'), (500, 'testing'), 
(500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages console-setup-linux depends on:
ii  console-tools   1:0.2.3dbs-70
ii  init-system-helpers 1.29
ii  initscripts 2.88dsf-59.3
ii  keyboard-configuration  1.141

console-setup-linux recommends no packages.

Versions of packages console-setup-linux suggests:
ii  console-setup  1.141

Versions of packages keyboard-configuration depends on:
ii  debconf 1.5.59
ii  liblocale-gettext-perl  1.07-1+b1

Versions of packages console-setup depends on:
ii  debconf 1.5.59
ii  keyboard-configuration  1.141
ii  xkb-data2.17-1

Versions of packages console-setup suggests:
ii  locales   2.22-5
ii  lsb-base  9.20160110

Versions of packages console-setup-linux is related to:
pn  console-common
pn  console-data  
ii  console-tools 1:0.2.3dbs-70
pn  gnome-control-center  
pn  kbd   
ii  systemd   229-3

-- debconf information:
  console-setup/use_system_font:
* keyboard-configuration/layoutcode: us,ua
* keyboard-configuration/toggle: Control+Shift
  console-setup/fontsize: 8x16
* keyboard-configuration/store_defaults_in_debconf_db: true
* keyboard-configuration/layout:
* keyboard-configuration/other:
  console-setup/charmap47: UTF-8
  console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic 
languages
* keyboard-configuration/variant: Ukrainian
* keyboard-configuration/switch: No temporary switch
  console-setup/store_defaults_in_debconf_db: true
* keyboard-configuration/altgr: The default for the keyboard layout
* keyboard-configuration/xkb-keymap: ua
  debian-installer/console-setup-udeb/title:
* keyboard-configuration/compose: No compose key
  console-setup/fontface47: Fixed
  keyboard-configuration/ctrl_alt_bksp: false
  console-setup/framebuffer_only:
  keyboard-configuration/unsupported_options: true
  console-setup/fontsize-fb47: 8x16
* keyboard-configuration/modelcode: pc105
  keyboard-configuration/unsupported_config_layout: true
* keyboard-configuration/optionscode: grp:ctrl_shift_toggle,grp_led:scroll
  keyboard-configuration/unsupported_layout: true
  console-setup/fontsize-text47: 8x16
  console-setup/codesetcode: Lat15
  keyboard-configuration/unsupported_config_options: true
* keyboard-configuration/model: Generic 105-key (Intl) PC
* keyboard-configuration/variantcode: ,
  console-setup/guess_font: