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

[Bug] - dracut[E]: Module 'systemd-pcrphase' depends on 'tpm2-tss', which can't be installed #839

Open
daniejstriata opened this issue Nov 15, 2024 · 3 comments

Comments

@daniejstriata
Copy link

daniejstriata commented Nov 15, 2024

Describe the bug
I get this error updating with the latest dracut package:
dracut[E]: Module 'systemd-pcrphase' depends on 'tpm2-tss', which can't be installed

To Reproduce
Steps to reproduce the behavior:

  1. run os update:
    yum update --releasever=2023.6.20241111 --best --allowerasing
    look for the dracut error.

image

@elsaco
Copy link

elsaco commented Nov 15, 2024

@daniejstriata what can't be installed, systemd-pcrphase or tpm2-tss?

The package tpm2-tss is available and installs okay on the 2023.6 release:

[ec2-user@ip-x-x-x-x ~]$ sudo dnf install tpm2-tss
Last metadata expiration check: 0:00:13 ago on Fri Nov 15 16:35:02 2024.
Dependencies resolved.
========================================================================================================================
 Package                   Architecture            Version                           Repository                    Size
========================================================================================================================
Installing:
 tpm2-tss                  x86_64                  4.0.2-1.amzn2023                  amazonlinux                  410 k

Transaction Summary
========================================================================================================================
Install  1 Package

Total download size: 410 k
Installed size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
tpm2-tss-4.0.2-1.amzn2023.x86_64.rpm                                                    2.2 MB/s | 410 kB     00:00
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   1.8 MB/s | 410 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                1/1
  Running scriptlet: tpm2-tss-4.0.2-1.amzn2023.x86_64                                                               1/1
  Installing       : tpm2-tss-4.0.2-1.amzn2023.x86_64                                                               1/1
  Running scriptlet: tpm2-tss-4.0.2-1.amzn2023.x86_64                                                               1/1
  Verifying        : tpm2-tss-4.0.2-1.amzn2023.x86_64                                                               1/1

Installed:
  tpm2-tss-4.0.2-1.amzn2023.x86_64

Complete!

Is systemd-pcrphase a package you added to your system? It's not available in the amazonlinux repo.

@daniejstriata
Copy link
Author

This is a clean install that was upgraded. If Dracut has new dependencies them is should be installed by the upgrade.

@elsaco
Copy link

elsaco commented Nov 15, 2024

The new dracut-102 package has modules not available in dracut-055, one being systemd-pcrphase. Use dracut --list-modules to see the difference. However, systemd-pcrphase can't be added to the initrd image:

[ec2-user@ip-172-x-x-x ~]$ sudo dracut --add systemd-pcrphase --force
dracut[E]: Module 'systemd-pcrphase' depends on 'tpm2-tss', which can't be installed
dracut[E]: Module 'systemd-pcrphase' cannot be installed.

I think is because the instance I'm using is not UEFI, so there's no TPM support.

On a dracut-055 instance the above command can't find the module, it's not there:

[ec2-user@ip-172-x-x-x ~]$ sudo dracut --add systemd-pcrphase --force
dracut: dracut module 'systemd-pcrphase' cannot be found or installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants