Skip to content

Commit

Permalink
jeos/firstrun.pm: Handle the new menu driven disk-encryption-tool flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Apr 4, 2024
1 parent fff286d commit 629b4ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/jeos/firstrun.pm
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,16 @@ sub run {
}

if (is_bootloader_sdboot) {
assert_screen 'jeos-root-as-enc-pass';
send_key_until_needlematch 'jeos-fde-option-enroll-root-pw', 'down' unless check_screen('jeos-fde-option-enroll-root-pw', 1);
send_key 'ret';

if (get_var('QEMUTPM')) {
assert_screen 'jeos-fde-tpm-enroll';
send_key_until_needlematch 'jeos-fde-option-enroll-tpm', 'down' unless check_screen('jeos-fde-option-enroll-tpm', 1);
send_key 'ret';
}

# All options used up, so no need to press 'Done' explicitly anymore.

wait_serial(qr/^Encryption recovery key:\s+(([a-z]+-)+[a-z]+)/m) or die 'The encryption recovery key is missing';
}

Expand Down

0 comments on commit 629b4ec

Please sign in to comment.