]> git.ipfire.org Git - thirdparty/grub.git/commit
luks2: Strip dashes off of the UUID
authorPatrick Steinhardt <ps@pks.im>
Sat, 30 May 2020 12:25:11 +0000 (14:25 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 18 Sep 2020 20:31:29 +0000 (22:31 +0200)
commitee12785f75eb255930902779964401544becf9f8
tree6013174cfcec3c36ec3e969ac30e49c628c81b45
parent6efd04f31468fe55b492258809731ada69392b33
luks2: Strip dashes off of the UUID

The UUID header for LUKS2 uses a format with dashes, same as for
LUKS(1). But while we strip these dashes for the latter, we don't for
the former. This isn't wrong per se, but it's definitely inconsistent
for users as they need to use the dashed format for LUKS2 and the
non-dashed format for LUKS when e.g. calling "cryptomount -u $UUID".

Fix this inconsistency by stripping dashes off of the LUKS2 UUID.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/luks2.c