jaypipes / ghw

Go HardWare discovery/inspection library
Apache License 2.0
1.62k stars 174 forks source link

Get partition type for unmounted partitions #305

Closed Itxaka closed 2 years ago

Itxaka commented 2 years ago

If a partition is unmounted our current way of getting the partition type wont work, as it only checks for mounted partitions.

This patch makes it check in udev if the partition type is empty

This requires https://github.com/jaypipes/ghw/pull/304 as that brings the udevInfoPartition

Signed-off-by: Itxaka igarcia@suse.com

Itxaka commented 2 years ago

will rebase if #304 gets in :)

Itxaka commented 2 years ago

rebased!

Itxaka commented 2 years ago

@fromanirh any updates on this? thanks!

ffromani commented 2 years ago

I see @jaypipes is already on it; I will have a look myself today/tomorrow as well