Skip to content

Commit

Permalink
enable TPM2
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Feb 21, 2025
1 parent 9ab7637 commit 7ecbaa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/bootloader/bls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ def self.default_menu

# Enabe TPM2, if it is required
def self.enable_tpm2
return unless StorageManager.instance.proposal
return unless StorageManager.instance.proposal.settings.encryption_use_tpm2
return unless Y2Storage::StorageManager.instance.proposal
return unless Y2Storage::StorageManager.instance.proposal.settings.encryption_use_tpm2

begin
Yast::Execute.on_target!("keyctl", "padd", "user", "cryptenroll",
"@u", stdout: :capture,
stdin: StorageManager.instance.proposal.settings.encryption_password)
stdin: Y2Storage::StorageManager.instance.proposal.settings.encryption_password)
rescue Cheetah::ExecutionFailed => e
Yast::Report.Error(
format(_(
Expand Down

0 comments on commit 7ecbaa7

Please sign in to comment.