Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle encrypt booting in case of inst-bootmenu matched #5736

Merged
merged 1 commit into from Sep 11, 2018

Conversation

mitiao
Copy link
Contributor

@mitiao mitiao commented Sep 10, 2018

workaround_type_encrypted_passphrase if (check_screen('encrypted-disk-password-prompt', 10));
assert_screen('grub2');
}
elsif (match_has_tag('encrypted-disk-password-prompt')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simplified a bit by just calling check_screen on L#421 and replacing elsif with if:

          if (match_has_tag('tianocore-mainmenu')) {
                $self->handle_uefi_boot_disk_workaround();
                # Maybe we can assert_screen here if ENCRYPT is set
                check_screen('encrypted-disk-password-prompt', 10); 
          }
           if (match_has_tag('encrypted-disk-password-prompt')) {
                workaround_type_encrypted_passphrase;
                assert_screen('grub2');
          }

We still will have duplication with L#429, but reworking all affected needles will be too cumbersome I guess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's better enough. And workaround_type_encrypted_passphrase would check ENCRYPT var and do assert the tag again.

This fixes the encrypt booting for aarch64 and ppc64le if
'boot from harddisk' is not default in bootloader, in this
case we have to handle passphrase for encrypt partition.

See: https://progress.opensuse.org/issues/40601 and
https://progress.opensuse.org/issues/40604
@mitiao mitiao force-pushed the encrypt_boot_offline_migration branch from 5f87f13 to 065e301 Compare September 11, 2018 02:27
@rwx788 rwx788 merged commit b10eab3 into os-autoinst:master Sep 11, 2018
@mitiao mitiao deleted the encrypt_boot_offline_migration branch September 11, 2018 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants