-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Extension: UFS for image generation pipeline #8474
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0bf6a12
Extension: UFS
HeyMeco 488c6f0
Merge branch 'main' into UFS-Extension
HeyMeco 452965e
Apply coderabbit suggestion: Guard against errexit on missing sfdisk
HeyMeco 0c95dc6
Merge branch 'main' into UFS-Extension
HeyMeco 66bb3ee
Dependency: e2fsprogs for mkfs.ext4 (in trixie)
HeyMeco 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 hidden or 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,14 @@ | ||
# Create UFS aligned image (requires >= Debian 13 (Trixie) Host) | ||
function extension_prepare_config__ufs { | ||
# Check sfdisk version is >= 2.41 for UFS support | ||
local sfdisk_version | ||
sfdisk_version=$(sfdisk --version | awk '/util-linux/ {print $NF}') | ||
if [[ -z "${sfdisk_version}" ]]; then | ||
exit_with_error "sfdisk not found - please install util-linux / fdisk >= 2.41 package" | ||
fi | ||
if linux-version compare "${sfdisk_version}" lt "2.41"; then | ||
exit_with_error "UFS extension requires sfdisk >= 2.41 (from util-linux). Current version: ${sfdisk_version}" | ||
fi | ||
EXTRA_IMAGE_SUFFIXES+=("-ufs") | ||
declare -g SECTOR_SIZE=4096 | ||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.