Skip to main content
deleted 696 characters in body; edited tags; edited title
Source Link
ChennyStar
  • 2k
  • 16
  • 32

Plymouth: disable status messages and modify LUKS password prompt

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 thingsone thing, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?

Plymouth: disable status messages and modify LUKS password prompt

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 things, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?

Plymouth: disable status messages

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify one thing, though:

After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

deleted 150 characters in body
Source Link
ChennyStar
  • 2k
  • 16
  • 32

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 things, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

Plymouth gets the prompt text from cryptsetup, where it's hard-coded (https://github.com/systemd/systemd/blob/v249/src/cryptsetup/cryptsetup.c#L570). I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 things, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

Plymouth gets the prompt text from cryptsetup, where it's hard-coded (https://github.com/systemd/systemd/blob/v249/src/cryptsetup/cryptsetup.c#L570). I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 things, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?

Source Link
ChennyStar
  • 2k
  • 16
  • 32

Plymouth: disable status messages and modify LUKS password prompt

I installed Plymouth on a LUKS encrypted machine. Works fine. Theme is Spinner, in case it matters.

I'd like to modify 2 things, though:

1/ After entering the LUKS passphrase, there's a status message cryptsetup: nvme0n1p3_crypt set up successfully showing for 2-3 seconds. Is it possible to get rid of it? In /usr/share/plymouth/themes/spinner/spinner.plymouth there is a MessageBelowAnimation=true option, but that's just for the position on the screen. Is it possible to completely hide the status messages?

2/ The password prompt is: Please unlock disk nvme0n1p3_crypt. Is it possible to replace it by something more generic, like Please enter password?

Plymouth gets the prompt text from cryptsetup, where it's hard-coded (https://github.com/systemd/systemd/blob/v249/src/cryptsetup/cryptsetup.c#L570). I found /usr/share/plymouth/themes/script/script.script:

(...)
fun display_password_callback (prompt, bullets) {
  (...)
}
(...)
Plymouth.SetDisplayPasswordFunction(display_password_callback);
(...)

But that's as far as I got, I'm not Plymouth-savvy enough to know where to go from there. I guess somewhere Plymouth calls display_password_callback (prompt, bullets) and passes the LUKS prompt. So maybe it's possible to replace the LUKS prompt by a custom one. But I didn't find where that happens.

Any idea?