Skip to content

Commit

Permalink
Offset plymouth messages in anti-evil-maid-unseal
Browse files Browse the repository at this point in the history
Done by printing three empty ones before the first real message.

Signed-off-by: Sergii Dmytruk <[email protected]>
  • Loading branch information
SergiiDmytruk committed Aug 24, 2023
1 parent 87175b0 commit 62819a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 90anti-evil-maid/anti-evil-maid-unseal
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ LUKS_PCR=13
PLYMOUTH_MESSAGES=()

plymouth_message() {
if [ "${#PLYMOUTH_MESSAGES[@]}" -eq 0 ]; then
# add vertical "padding" to avoid printing messages over plymouth's
# prompt help
plymouth message --text=""
plymouth message --text=""
plymouth message --text=""
fi

plymouth message --text="$*"
PLYMOUTH_MESSAGES+=("$*")
}
Expand Down

0 comments on commit 62819a6

Please sign in to comment.