]> git.ipfire.org Git - thirdparty/systemd.git/commit
tty-ask-password-agent: log when starting a query on the console
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 23 May 2021 08:06:38 +0000 (10:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 31 May 2021 17:22:51 +0000 (19:22 +0200)
commit44a989e03906b0cf8ae60494992e531a5c3a434a
tree7d808f0115213d2674b795482dc3d188030e5964
parent0727077b532f9eea57cf77c4a9d331b6a6c62aa6
tty-ask-password-agent: log when starting a query on the console

When looking at logs from a boot with an encrypted device, I see
(with unrelevant messages snipped):
[    2.751692] systemd[1]: Started Dispatch Password Requests to Console.
[    7.929199] systemd-cryptsetup[258]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/2d9b648a-15b1-4204-988b-ec085089f8ce.
[    9.499483] systemd[1]: Finished Cryptography Setup for luks-2d9b648a-15b1-4204-988b-ec085089f8ce.

There is a hug gap in timing without any explanatory message. If I didn't type
in the password, there would be no way to figure out why things blocked from
this log, so let's log something to the log too.
src/tty-ask-password-agent/tty-ask-password-agent.c