On Mon, Jun 14, 2021 at 08:40:17PM +0000, Alyssa Ross wrote: > In a script, I wanted to look up the device node for the booted EFI > partition. systemd-boot exposes this in an EFI variable but it's > uppercase, so when I tried to do this, it didn't work: > > findfs "(< /sys/firmware/efi/vars/LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440)" Bogus command here, sorry. It should have been: findfs PARTUUID="$(cat /sys/firmware/efi/vars/LoaderDevicePartUUID-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f/data)" But my point stands. :) > This was very confusing to me, and I lost some time trying to figure > out what was wrong before I realised that case of UUIDs was > significant to findfs. > > Here, I've made comparisons of UUID and PARTUUID case-insensitive in > libblkid, which fixes the command above. > > Signed-off-by: Alyssa Ross <hi@xxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature