This assumes that the UUID is the first value which does not seem to be always the case. E.g. the regex seems to miss a record that looks like this

    /dev/mapper/vg-var: LABEL="var" UUID="ad..." TYPE="ext4"

It might be more reliable to call `blkid -s UUID` but I do not know if the `-s` switch is supported everywhere.