Re: [PATCH] libblkid: match uppercase UUIDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 15, 2021 at 12:07 AM Alyssa Ross <hi@xxxxxxxxx> wrote:
>
> 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. :)

probably could use a pipe after cat, like:

cat ... | tr [:lower:] [:upper:]

or patch util-linux docs, to implicitly state that comparison is done
with upper case letters (UUID)... Not sure which way is better
(including your patch).

Thanks.



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux