From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Colin Guthrie <colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 5/6] i18n: Run console_init prior to udev startup.
Date: Thu, 24 Jan 2013 13:03:39 +0100 [thread overview]
Message-ID: <5101231B.20509@redhat.com> (raw)
In-Reply-To: <1358972106-2395-6-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
Am 23.01.2013 21:15, schrieb Colin Guthrie:
> In some cases udev will initialise the encrypted disks and ask for a
> password before it initialises the console.
>
> This can result in the password for encrypted partitions being asked for
> with the wrong keymap loaded.
>
> So this patch just attempts to initialise things statically. It might
> fail but udev will do it properly later anyway.
> ---
> modules.d/10i18n/i18n-pre-udev.sh | 7 +++++++
> modules.d/10i18n/module-setup.sh | 1 +
> 2 files changed, 8 insertions(+)
> create mode 100755 modules.d/10i18n/i18n-pre-udev.sh
>
> diff --git a/modules.d/10i18n/i18n-pre-udev.sh b/modules.d/10i18n/i18n-pre-udev.sh
> new file mode 100755
> index 0000000..2033948
> --- /dev/null
> +++ b/modules.d/10i18n/i18n-pre-udev.sh
> @@ -0,0 +1,7 @@
> +#!/bin/sh
> +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
> +# ex: ts=8 sw=4 sts=4 et filetype=sh
> +
> +if [ -x /lib/udev/console_init -a -e /dev/tty0 ]; then
> + /lib/udev/console_init /dev/tty0
> +fi
> diff --git a/modules.d/10i18n/module-setup.sh b/modules.d/10i18n/module-setup.sh
> index 1ed1db6..21b0c05 100755
> --- a/modules.d/10i18n/module-setup.sh
> +++ b/modules.d/10i18n/module-setup.sh
> @@ -89,6 +89,7 @@ install() {
> inst ${moddir}/console_init.sh /lib/udev/console_init
> inst_rules ${moddir}/10-console.rules
> inst_hook cmdline 20 "${moddir}/parse-i18n.sh"
> + inst_hook pre-udev 10 "$moddir/i18n-pre-udev.sh"
> }
>
> install_all_kbd() {
>
On an initramfs with systemd inside, this was already fixed.
Will make this probably conditionally.
next prev parent reply other threads:[~2013-01-24 12:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-23 20:15 Various patches applied on Mageia that might be good for upstream Colin Guthrie
[not found] ` <1358972106-2395-1-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-01-23 20:15 ` [PATCH 1/6] dm/md: Only include UUIDs once in the command line Colin Guthrie
[not found] ` <1358972106-2395-2-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-01-24 11:26 ` Harald Hoyer
2013-01-23 20:15 ` [PATCH 2/6] lvm: Ensure LVM is initialised in non-hostonly mode Colin Guthrie
[not found] ` <1358972106-2395-3-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-01-24 11:32 ` Harald Hoyer
[not found] ` <51011BB2.3010409-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-24 11:40 ` Colin Guthrie
2013-01-23 20:15 ` [PATCH 3/6] resume: Ensure we remove the timout job when we find the resume device Colin Guthrie
2013-01-23 20:15 ` [PATCH 4/6] rootfs-block: Support lilo style device numbers Colin Guthrie
[not found] ` <1358972106-2395-5-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-01-24 11:40 ` Harald Hoyer
[not found] ` <51011D9C.4080901-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-01-24 12:30 ` Colin Guthrie
2013-01-23 20:15 ` [PATCH 5/6] i18n: Run console_init prior to udev startup Colin Guthrie
[not found] ` <1358972106-2395-6-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-01-24 12:03 ` Harald Hoyer [this message]
2013-01-23 20:15 ` [PATCH 6/6] kernel-modules: Add ehci support for kernel 3.8+ Colin Guthrie
[not found] ` <1358972106-2395-7-git-send-email-colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org>
2013-02-13 16:42 ` Harald Hoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5101231B.20509@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=colin-odJJhXpcy38dnm+yROfE0A@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.