Mellanox / bfscripts

Collection of scripts used for BlueField SoC system management.
BSD 2-Clause "Simplified" License
17 stars 27 forks source link

bfrec: use 'blkid' instead of 'fdisk' to display ESP devices #194

Closed kblaiech closed 9 months ago

kblaiech commented 9 months ago

Old versions of 'fdisk' don't display the device full name of the EFI System Partition thus the output cannot be parsed given the current logic. Thus substitute 'fdisk' command with 'blkid'. The block devices listed by 'blkid' are filtered out using the LABEL field. It is expected that EFI System Partition would show either "system-boot" or "EFI*".

These changes implemented in 'bfrec' should be compatible accross distirbutions.

RM #3693653