Skip to content

Commit 615f401

Browse files
authored
Merge pull request os-autoinst#21294 from Amrysliu/poo_164024
Authorize TPM after reinstalling bootloader
2 parents 05d13d0 + 824cfac commit 615f401

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/transactional/trup_smoke.pm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ sub action {
2121
$reboot //= 1;
2222
record_info('TEST', $text);
2323
trup_call($target);
24+
25+
if ($target =~ /bootloader/ && get_var('FLAVOR') =~ m/-encrypted/i) {
26+
record_soft_failure("Workaround for bsc#1228126");
27+
script_run("fdectl tpm-authorize");
28+
}
2429
if ($reboot && $target =~ /bootloader|grub\.cfg|initrd/ && (is_bootloader_sdboot || is_bootloader_grub2_bls)) {
2530
# With sdbootutil, the snapshot is not changed. Verify that and test rebooting.
2631
check_reboot_changes(0);
@@ -36,12 +41,7 @@ sub run {
3641

3742
select_serial_terminal;
3843

39-
if (get_var('FLAVOR') =~ m/-encrypted/i) {
40-
record_soft_failure("bsc#1228126: Encrypted image fails to boot after reinstalling bootloader");
41-
}
42-
else {
43-
action('bootloader', 'Reinstall bootloader');
44-
}
44+
action('bootloader', 'Reinstall bootloader');
4545
action('grub.cfg', 'Regenerate grub.cfg');
4646
action('initrd', 'Regenerate initrd');
4747
if (is_bootloader_sdboot || is_bootloader_grub2_bls) {

0 commit comments

Comments
 (0)