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

Add block package #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented Mar 5, 2025

The block package adds an interface to list and detect partitions. In former Elemental Toolkit it was first implemented around wrapping lsblk command line and at a later point in time it was reimplemented around ghw library (we had to contribute there too).

This current block package includes both implementations, one around ghw and another one around lsblk. I am not convinced it was a wise move using ghw, hence I'd go back to lsblk because is powerful and provides configurable JSON outputs which are easy to consume. I kept ghw around for the time being just in case we discover some limitation with the lsblk approach.

@davidcassany davidcassany requested a review from a team as a code owner March 5, 2025 13:13
@davidcassany davidcassany force-pushed the block_package branch 4 times, most recently from 6f1487c to 1dacb49 Compare March 5, 2025 16:04
The block package adds an interface to list and detect partitions.
In former Elemental Toolkit it was first implemented around wrapping
lsblk command line and at a later point in time it was reimplemented
around ghw library (we had to contribute there too).

This current block package includes both implementations, one around
ghw and another one around lsblk. I am not convinced it was a wise
move using ghw, hence I'd go back to lsblk because is powerful and provides
configurable JSON outputs which as easy to consume. I kept ghw around
for the time being just in case we discover some limitation with the
lsblk approach.

Signed-off-by: David Cassany <dcassany@suse.com>
Signed-off-by: David Cassany <dcassany@suse.com>
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