This means that we need elevated permissions for that, as blkid requires privilege elevation. Fortunately we have udevInfoPartition which requires zero privs and can produce the same UUID (ID_PART_ENTRY_UUID).
Changing that would allow us to drop the externaltools part from linux block detection and fully rely on rootless udev :D
Following with the same pattern there is also Filesystem UUID (ID_FS_UUID), but I think I expanded the API too much already ;)
We currently only use the lsblk binary for getting the partition UUID: https://github.com/jaypipes/ghw/blob/main/pkg/block/block_linux.go#L279
This means that we need elevated permissions for that, as blkid requires privilege elevation. Fortunately we have
udevInfoPartition
which requires zero privs and can produce the same UUID (ID_PART_ENTRY_UUID
).Changing that would allow us to drop the externaltools part from linux block detection and fully rely on rootless udev :D
Following with the same pattern there is also Filesystem UUID (
ID_FS_UUID
), but I think I expanded the API too much already ;)