|
Harald Hoyer |
9d5d75 |
From e9a84e0a215fb5a79e563f665bc406c0ea177d32 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Daniel Molkentin <dmolkentin@suse.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Wed, 5 Sep 2018 12:06:06 +0200
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] 98dracut-systemd: Start systemd-vconsole-setup before
|
|
Harald Hoyer |
9d5d75 |
dracut-cmdline-ask
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
This is what happened before this patch (edited for brevity):
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
dracut-cmdline-ask.service in modules.d/98dracut-systemd, which invokes
|
|
Harald Hoyer |
9d5d75 |
dracut-cmdline-ask.sh. This script and systemd-vconsole-setup are
|
|
Harald Hoyer |
9d5d75 |
started in parallel for the same console (tty1).
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
Then dracut-cmdline-ask quits immediately without doing anything (unless
|
|
Harald Hoyer |
9d5d75 |
rd.cmdline=ask is given). As this is a bash script and it gets tty as
|
|
Harald Hoyer |
9d5d75 |
stdin as specified in its *.service, this triggers the hangup of tty1 at
|
|
Harald Hoyer |
9d5d75 |
its exit.
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
Meanwhile systemd-vconsole-setup continues and tries some ioctls after
|
|
Harald Hoyer |
9d5d75 |
that, but they fail because of the hung up tty1.
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
The usual culprit for starting systemd-vconsole-setup early on is
|
|
Harald Hoyer |
9d5d75 |
plymouth-start.service, even if plymouth.enable=0 is set.
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
A popular (and annoying) symptom of this as reported by users was
|
|
Harald Hoyer |
9d5d75 |
the inability use their configured keyboard layout in plymouth when
|
|
Harald Hoyer |
9d5d75 |
unlocking their crypted block devices.
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
Reference: boo#1055834
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
modules.d/98dracut-systemd/dracut-cmdline-ask.service | 2 ++
|
|
Harald Hoyer |
9d5d75 |
1 file changed, 2 insertions(+)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/modules.d/98dracut-systemd/dracut-cmdline-ask.service b/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
Harald Hoyer |
9d5d75 |
index ce7deda5..b96c2aaf 100644
|
|
Harald Hoyer |
9d5d75 |
--- a/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
Harald Hoyer |
9d5d75 |
+++ b/modules.d/98dracut-systemd/dracut-cmdline-ask.service
|
|
Harald Hoyer |
9d5d75 |
@@ -7,6 +7,8 @@ Description=dracut ask for additional cmdline parameters
|
|
Harald Hoyer |
9d5d75 |
DefaultDependencies=no
|
|
Harald Hoyer |
9d5d75 |
Before=dracut-cmdline.service
|
|
Harald Hoyer |
9d5d75 |
After=systemd-journald.socket
|
|
Harald Hoyer |
9d5d75 |
+After=systemd-vconsole-setup.service
|
|
Harald Hoyer |
9d5d75 |
+Requires=systemd-vconsole-setup.service
|
|
Harald Hoyer |
9d5d75 |
Wants=systemd-journald.socket
|
|
Harald Hoyer |
9d5d75 |
ConditionPathExists=/usr/lib/initrd-release
|
|
Harald Hoyer |
9d5d75 |
ConditionKernelCommandLine=|rd.cmdline=ask
|
|
Harald Hoyer |
9d5d75 |
|