]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: use ID_PART_ENTRY_SCHEME as fallback for PTTYPE
authorKarel Zak <kzak@redhat.com>
Thu, 22 May 2025 08:01:03 +0000 (10:01 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Jun 2025 08:22:08 +0000 (10:22 +0200)
commitb12fd4ebe3fa41a8470ec37c05fa0ffb21dfd1da
tree87af3e4a87aaafc5078003ab89b822468513f7b7
parent798239213dba5984986f05f43ed4de0c52c218a3
lsblk: use ID_PART_ENTRY_SCHEME as fallback for PTTYPE

The udev database typically inherits the ID_PART_TABLE_TYPE property
from the entire disk device to its partitions. However, in some cases,
this property may be missing. Fortunately, blkid/udev also provides
ID_PART_ENTRY_SCHEME for all partitions.

Fixes: https://github.com/util-linux/util-linux/issues/3570
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 23a7e0865ad56c46a69084974182b9979592b867)
misc-utils/lsblk-properties.c