-
Notifications
You must be signed in to change notification settings - Fork 5
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 EFI load option UUID #415
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9a7b653
tests: Require pytest
dbnicholson 795fa23
tests: Add helper to get path to built program
dbnicholson b4081f9
tests: Add EFI variable data
dbnicholson 26753f0
Add eos-update-efi-uuid for updating EFI load option partition UUIDs
dbnicholson f2e5767
repartition: Update partitions in EFI load options
dbnicholson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Define hexdump textconv with "git config diff.efivars.textconv hd" | ||
tests/efivars/* diff=efivars | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2024 Endless OS Foundation LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
# pytest fixtures | ||
|
||
import pytest | ||
from shutil import copyfile, copytree | ||
|
||
from .util import EFIVARFS_PATH | ||
|
||
|
||
@pytest.fixture | ||
def efivarfs(tmp_path, monkeypatch): | ||
"""Temporary efivarfs data | ||
|
||
Copy the test efivarfs data to a temporary location. The environment | ||
variable EFIVARFS_PATH is set to the temporary location. This is supported | ||
by libefivar. | ||
""" | ||
# Only the data is copied in case EFIVARFS_PATH is read only like | ||
# during distcheck. None of the metadata matters here. | ||
tmp_efivarfs = tmp_path / 'efivars' | ||
copytree(EFIVARFS_PATH, tmp_efivarfs, copy_function=copyfile) | ||
|
||
# libefivar expects this to end with a trailing /. | ||
monkeypatch.setenv('EFIVARFS_PATH', f'{tmp_efivarfs}/') | ||
|
||
return tmp_efivarfs |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12 Bytes
tests/efivars/OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22 Bytes
tests/efivars/PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary file not shown.
Binary file added
BIN
+112 Bytes
tests/efivars/PlatformRecovery0000-8be4df61-93ca-11d2-aa0d-00e098032b8c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I wonder where French came from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 This comes from TianoCore (EDK2), so my guess is someone bothered to do French translations for it. Yeah, now I see some translations.