Skip to content

Commit

Permalink
cli-mode: Make encryption unlock prompt cancellable
Browse files Browse the repository at this point in the history
  • Loading branch information
sysrich committed Nov 12, 2024
1 parent ddd46ee commit 07d5aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/tik/modules/pre/20-mig
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ if [ -z "${skipbackup}" ]; then
else
while [ 1 ]; do
if $gui; then
passphrase=$(zenity --password --title="Encrypted partition (${encrypted_partition}) detected" --cancel-label="Skip") || break
passphrase=$(zenity --password --title="Encrypted partition (${encrypted_partition}) detected" --cancel-label="Skip") || break
else
cenity passphrase --password --title="Encrypted partition (${encrypted_partition}) detected" --cancel-label="Skip" || retval=$?
cenity passphrase --password --title="Encrypted partition (${encrypted_partition}) detected" --cancel-label="Skip" || break
fi
if [ -n "${passphrase}" ]; then
echo -n "${passphrase}" | prun /usr/sbin/cryptsetup luksOpen /dev/disk/by-id/${encrypted_partition} crypt_${encrypted_partition}
Expand Down

0 comments on commit 07d5aa9

Please sign in to comment.