[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/17] cryptodisk,luks: Allow special processing for comparin
From: |
Glenn Washburn |
Subject: |
Re: [PATCH 07/17] cryptodisk,luks: Allow special processing for comparing UUIDs. |
Date: |
Thu, 30 Jul 2020 16:29:09 -0500 |
On Thu, 30 Jul 2020 17:24:12 +0200
Patrick Steinhardt <ps@pks.im> wrote:
> On Wed, Jul 29, 2020 at 04:50:12PM -0500, development@efficientek.com
> wrote:
> > From: Glenn Washburn <development@efficientek.com>
> >
> > Create grub_uuidcasecmp to compare UUIDs in a case-insensitive
> > manner and that ignores '-' characters. This is backwards
> > compatible with the old LUKS1 code that stored and compared against
> > UUIDs without dashes. However, the new LUKS2 code stores and
> > compares UUIDs that contain dashes. Really, the UUID comparison
> > shouldn't care about the dashes, as this change implements. Now
> > your old scripts will continue to work with UUIDs without dashes,
> > but you may choose to use UUIDs with dashes now too for both LUKS1
> > and LUKS2.
>
> FYI, this is crossing with my own patchset to implement probing
> support for LUKS2 [1]. I do like that we start becoming agnostic of
> those dashes now, though, as it really is kind of annoying to handle
> as a user.
>
> 1: https://lists.gnu.org/archive/html/grub-devel/2020-05/msg00235.html
Yep, I saw your patch and like that it brings into alignment LUKS1 and
LUKS2 UUID handling. Unfortunately, LUKS UUID handling is also
different than FS UUID handling, which uses dashes. So not only is the
current behavior annoying, its also confusing. I've been bitten by this
a couple times. This change brings LUKS* UUID handling into alignment
with FS UUID handling and is backwards compatible with current LUKS
handling. Since your patch set hasn't been committed, would you be
opposed to dropping that patch?
- [PATCH 03/17] cryptodisk: Incorrect calculation of start sector for grub_disk_read in grub_cryptodisk_read., (continued)
- [PATCH 03/17] cryptodisk: Incorrect calculation of start sector for grub_disk_read in grub_cryptodisk_read., development, 2020/07/29
- [PATCH 04/17] cryptodisk: Add more verbosity when reading/writing cryptodisks., development, 2020/07/29
- [PATCH 06/17] luks2: grub_cryptodisk_t->total_length is the max number of device native sectors., development, 2020/07/29
- [PATCH 05/17] luks: Add support for LUKS2 in (proc)/luks_script, development, 2020/07/29
- [PATCH 07/17] cryptodisk, luks: Allow special processing for comparing UUIDs., development, 2020/07/29
- [PATCH 08/17] cryptodisk: Unregister cryptomount command when removing module., development, 2020/07/29
- [PATCH 12/17] fs: Allow number of blocks in block list to be optional, where length will be defaulted to the length of the device., development, 2020/07/29
- [PATCH 11/17] cryptodisk: Rename total_length field in grub_cryptodisk_t to total_sectors., development, 2020/07/29
- [PATCH 09/17] fs: When checking if a block list goes past the end of the disk, make sure the total size of the disk is in grub native sector sizes, otherwise there will be blocks at the end of the disk unaccessible by block lists., development, 2020/07/29
- [PATCH 10/17] cryptodisk: Properly handle non-512 byte sized sectors., development, 2020/07/29
- [PATCH 14/17] cryptodisk: Add header line to procfs entry and crypto and source device names., development, 2020/07/29
- [PATCH 13/17] loopback: Add procfs entry 'loopbacks' to output configured loopback devices., development, 2020/07/29