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

Fix boot selection on uki #624

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix boot selection on uki #624

wants to merge 1 commit into from

Conversation

Itxaka
Copy link
Member

@Itxaka Itxaka commented Dec 10, 2024

Seems like systemd-boot identifies entries by the ID which doesnt show anywhere, and that Id is the entry conf name minus the boot assessment

This means we can drop the boot assessment part from the loader.conf default entry selection

image

Seems like systemd-boot identifies entries by the ID whcih doesnt show
anywhere, and that Id is the entry conf name minus the boot assesment

Signed-off-by: Itxaka <[email protected]>
@Itxaka Itxaka requested a review from a team December 10, 2024 09:39
@Itxaka
Copy link
Member Author

Itxaka commented Dec 10, 2024

this shit is lying to me, it doesnt seem to do what it says in there, even if I set passive.conf as the entry, it will NOT select the passive....I dont get it.

@@ -133,13 +133,9 @@ func selectBootEntrySystemd(cfg *config.Config, entry string) error {
if err != nil {
return err
}
assessment, err := utils.ReadAssessmentFromEntry(cfg.Fs, bootFileName, cfg.Logger)
Copy link
Member

Choose a reason for hiding this comment

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

I think this function is only used here and the tests so maybe it can be removed

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

Successfully merging this pull request may close these issues.

2 participants