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

Update predictions if systemd-boot is updated #146

Open
sysrich opened this issue Oct 21, 2024 · 3 comments
Open

Update predictions if systemd-boot is updated #146

sysrich opened this issue Oct 21, 2024 · 3 comments

Comments

@sysrich
Copy link
Member

sysrich commented Oct 21, 2024

the current sdbootutil.tukit + suse-module-tools approach only triggers based on the logic of regenerate-initrd-posttrans

However this ignores when systemd-boot is updated, because systemd-boot doesn't need to regenerate the intrd

But systemd-boot is measured..so measurements are invalidated.

@aplanas
Copy link
Collaborator

aplanas commented Oct 21, 2024

There is a trigger in the spec file that should be doing this:

https://github.com/openSUSE/sdbootutil/blob/main/sdbootutil.spec#L120

@sysrich
Copy link
Member Author

sysrich commented Oct 21, 2024

hmm won't that trigger if systemd-boot AND sdbootutil are in the same transaction? Maybe systemd-boot.spec also needs the same trigger?

@aplanas
Copy link
Collaborator

aplanas commented Oct 21, 2024

It is hard to interpret the documentation [1][2]:

%transfiletriggerin: Executed once after transaction for all installed packages that contained file(s) that matches prefix of this trigger. Also executed after transaction if there was a package containing this file trigger in that transaction and there is/are some files(s) matching prefix of this trigger in rpmdb.

The first sentence suggest that the trigger will be executed if one package that contains those reference files are updated, but it is hard to decode it properly : ((

Can be that also this is required:

# we need this for file triggers
echo "techpreview.ZYPP_SINGLE_RPMTRANS = 1" >> /etc/zypp/zypp.conf

[1] https://rpm-software-management.github.io/rpm/manual/file_triggers.html
[2] https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/packaging_and_distributing_software/new-features-in-rhel-8_packaging-and-distributing-software#file-triggers-executed-once-per-package

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