gen_udev_rules: add raw partition rule generator - #156
Open
Wenwen Fu (wenwfu) wants to merge 1 commit into
Open
Conversation
Qualcomm platforms expose firmware and metadata partitions that are not intended to contain mountable filesystems. Probing each of them with blkid adds unnecessary work during udev coldplug. Keeping the exclusion policy in a distribution layer also prevents other qcom-ptool users from reusing it. Add a gen_udev_rules subcommand with a reviewed partition-name policy and udev template. Filter the policy against one or more selected layouts and emit only exact labels present in those layouts. Unknown or custom labels retain the default filesystem probing behavior. The generated rule disables only blkid probing and preserves persistent partition metadata links. Signed-off-by: Wenwen Fu <wenwfu@qti.qualcomm.com>
Wenwen Fu (wenwfu)
requested review from
Dmitry Baryshkov (lumag),
Nicolas Dechesne (ndechesne) and
Viswanath Kraleti (vkraleti)
as code owners
August 10, 2026 05:57
Author
|
Hi Igor Opaniuk (@igoropaniuk), a friendly review ping when you have time. This PR provides the qcom-ptool side of qualcomm-linux/meta-qcom#2865. I would particularly appreciate feedback on:
All current CI checks are passing. The meta-qcom integration is waiting on this interface, so an initial review or direction would be very helpful. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a
gen_udev_rulessubcommand that generates machine-specific udevrules for reviewed Qualcomm raw GPT partitions.
The generator:
labels are present
Example:
qcom-ptool gen_udev_rules \ -i platforms/qcs6490-rb3gen2/ufs/partitions.conf \ -o 55-qcom-raw-partitions-noblkid.rulesMotivation
This functionality was originally implemented in
qualcomm-linux/meta-qcom#2865.
Move the generic generator, reviewed policy, and udev template into
qcom-ptool so they can be reused outside the Yocto layer. The meta-qcom
change will be updated to invoke this subcommand and retain only the
machine-specific integration and packaging.
Unknown or custom partition labels continue through the normal systemd
blkid probing path.