linux - how to list partitions of specific type?
lsblk -o +PARTTYPE
includes the partition type UUID in the listing. The EFI System Partition type UUID is C12A7328-F81F-11D2-BA4B-00A0C93EC93B
, so grepping for this (in lower case, or use the -i
flag with grep) lists your ESPs.