Skip to content

Add --properties-by={udev,blkid,file} to lsblk #2047

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

Closed
karelzak opened this issue Jan 30, 2023 · 1 comment · Fixed by #3099
Closed

Add --properties-by={udev,blkid,file} to lsblk #2047

karelzak opened this issue Jan 30, 2023 · 1 comment · Fixed by #3099
Labels
TODO We going to think about it ;-)

Comments

@karelzak
Copy link
Collaborator

lsblk reads information from udev, and if unsuccessful, then from libblkid, if --sysroot specified, then from a file.

It would be nice for some use cases (coreos/fedora-coreos-config#2181) to have a command line option to force lsblk to use non-default order how to get properties.

@karelzak karelzak added the TODO We going to think about it ;-) label Jan 30, 2023
@karelzak karelzak changed the title Add --properties-by={usev,blkid,file} to lsblk Add --properties-by={udev,blkid,file} to lsblk Aug 28, 2023
karelzak added a commit to karelzak/util-linux-work that referenced this issue Jun 24, 2024
This new option allows for controlling the method(s) used by lsblk to
gather file system and partition data about devices.

Fixes: util-linux#2047
Signed-off-by: Karel Zak <[email protected]>
@karelzak
Copy link
Collaborator Author

Hello, may I ask if the code for this issue has not been submitted yet? Are there any alternative workarounds?

I have submitted it now :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO We going to think about it ;-)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@karelzak and others